std :: audio::midi
Struct std::MidiMsg
struct MidiMsg {
unsigned char data[3];
int len;
}A MIDI message of up to 3 bytes: everything but sysex.
Fields
Methods
value: -8192 .. 8191 (0 = centre)
0 .. 16383 sixteenth notes
A one-byte system message: MIDI_CLOCK, MIDI_START, MIDI_STOP, ...
'bytes' (1..3 of them) as a message (len 0 if it's empty or longer).
The message's bytes (data[0..len]).
the status byte (0 for an empty message)
status & 0xF0 for channel messages, else the status
0..15 for channel messages, -1 otherwise
first data byte (note, controller, program), -1 if none
second data byte (velocity, value), -1 if none
note on with velocity > 0
note off, or note on with velocity 0
-8192 .. 8191 for a pitch bend, 0 otherwise