Expand description
MIDI 1.0 System Exclusive (SysEx) framing over caller buffers.
A SysEx message is F0 <payload...> F7, where every payload byte is a data
byte (high bit clear, 0..=127). These helpers are zero-heap: frame_sysex
writes into a caller buffer and returns the length; sysex_payload borrows
the payload slice out of a complete frame without copying.
Constants§
- SYSEX_
END - SysEx end (EOX) byte.
- SYSEX_
START - SysEx start byte.
Functions§
- frame_
sysex - Frame
payloadasF0 <payload> F7intoout, returning the total number of bytes written (payload.len() + 2). - frame_
universal - Universal SysEx: build a Non-Real-Time / Real-Time universal header frame.
- sysex_
payload - Borrow the payload (bytes between
F0andF7) from a complete SysEx frame.