midi_proto v0.1.0 MidiProto.Message.SystemExclusive

A MIDI System Exclusive (SysEx) message.

Link to this section Summary

Functions

Initialise a new System Exclusive message.

Link to this section Types

Link to this type

t()

t() :: %MidiProto.Message.SystemExclusive{
  payload: binary(),
  vendor_id: 0..16383
}
Link to this type

vendor_id()

vendor_id() ::
  0..16383 | :non_commercial | :predefined_nonrealtime | :predefined_realtime

Link to this section Functions

Link to this function

init(vendor_id, payload)

init(vendor_id(), binary()) :: t()

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.