Peter's keyboard firmware (QMK) https://qmk.fm/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

internals_midi_util.md 2.5KB

group midi_util

Summary

Members Descriptions
enummidi_packet_length_t An enumeration of the possible packet length values.
public boolmidi_is_statusbyte(uint8_t theByte) Test to see if the byte given is a status byte.
public boolmidi_is_realtime(uint8_t theByte) Test to see if the byte given is a realtime message.
publicmidi_packet_length_tmidi_packet_length(uint8_t status) Find the length of the packet associated with the status byte given.

Members

enummidi_packet_length_t

Values Descriptions
UNDEFINED
ONE
TWO
THREE

An enumeration of the possible packet length values.

public boolmidi_is_statusbyte(uint8_t theByte)

Test to see if the byte given is a status byte.

Parameters

  • theByte the byte to test

Returns

true if the byte given is a midi status byte

public boolmidi_is_realtime(uint8_t theByte)

Test to see if the byte given is a realtime message.

Parameters

  • theByte the byte to test

Returns

true if it is a realtime message, false otherwise

publicmidi_packet_length_tmidi_packet_length(uint8_t status)

Find the length of the packet associated with the status byte given.

Parameters

  • status the status byte

Returns

the length of the packet, will return UNDEFINED if the byte is not a status byte or if it is a sysex status byte