Skip to main content

Module sysex

Module sysex 

Source
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 payload as F0 <payload> F7 into out, 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 F0 and F7) from a complete SysEx frame.