MidiProto.Message.SystemExclusive (midi_proto v0.2.0)
A MIDI System Exclusive (SysEx) message.
Summary
Functions
Initialise a new System Exclusive message.
Types
@type t() :: %MidiProto.Message.SystemExclusive{ payload: binary(), vendor_id: 0..16383 }
Link to this type
vendor_id()
@type vendor_id() ::
0..16383 | :non_commercial | :predefined_nonrealtime | :predefined_realtime
Functions
Link to this function
init(vendor_id, payload)
Initialise a new System Exclusive message.
The payload parameter is a binary containing the payload to send. Be aware that the payload must be encoded such that the MSB of each byte is always zero (as per the MIDI spec). The easiest way to do this is to just base64 encode your data.