audio/midi.h file

Contents

MIDI utils.

Functions

auto midi_combine_bytes_to_int(midi_byte_t lsb, midi_byte_t msb) -> int
Used for MIDI controls whose values are split between MSB/LSB.
void midi_get_bytes_from_int(int val, midi_byte_t* lsb, midi_byte_t* msb)
Used for MIDI controls whose values are split between MSB/LSB.
auto midi_ctrl_change_get_ch_and_description(midi_byte_t* ctrl_change, char* buf) -> int
Saves a string representation of the given control change event in the given buffer.
void midi_panic_all(int queued)
Queues MIDI note off to event queues.
auto midi_get_msg_length(uint8_t status_byte) -> int
Returns the length of the MIDI message based on the status byte.