|
| SysCommonMessage (MIDIMessageType type, uint8_t data1=0x00, uint8_t data2=0x00, Cable cable=CABLE_1) |
| Constructor.
|
|
| SysCommonMessage (MIDIMessageType type, uint8_t data1, Cable cable) |
| Constructor.
|
|
| SysCommonMessage (MIDIMessageType type, Cable cable) |
| Constructor.
|
|
| SysCommonMessage (const MIDIMessage &msg) |
|
MIDIMessageType | getMessageType () const |
| Get the MIDI message type.
|
|
uint8_t | getNumberOfDataBytes () const |
| Get the number of data bytes of this type of System Common message.
|
|
| MIDIMessage (uint8_t header, uint8_t data1, uint8_t data2, Cable cable=CABLE_1) |
| Constructor.
|
|
| MIDIMessage (MIDIMessageType header, uint8_t data1, uint8_t data2, Cable cable=CABLE_1) |
| Constructor.
|
|
bool | operator== (MIDIMessage other) const |
| Check for equality.
|
|
bool | operator!= (MIDIMessage other) const |
| Check for inequality.
|
|
void | setMessageType (MIDIMessageType type) |
| Set the MIDI message type. More...
|
|
uint8_t | getData1 () const |
| Get the first data byte.
|
|
uint8_t | getData2 () const |
| Get the second data byte.
|
|
void | setData1 (uint8_t data) |
| Set the first data byte.
|
|
void | setData2 (uint8_t data) |
| Set the second data byte.
|
|
Cable | getCable () const |
| Get the MIDI USB cable number of the message.
|
|
void | setCable (Cable cable) |
| Set the MIDI USB cable number of the message.
|
|
bool | hasValidChannelMessageHeader () const |
| Check whether the header is a valid header for a channel message.
|
|
bool | hasValidSystemCommonHeader () const |
| Check whether the header is a valid header for a System Common message. More...
|
|
uint16_t | getData14bit () const |
| If Data 1 and Data 2 represent a single 14-bit number, you can use this method to retrieve that number.
|
|
void | setData14bit (uint16_t data) |
| If Data 1 and Data 2 represent a single 14-bit number, you can use this method to set that number.
|
|
void | sanitize () |
| Make sure that the status byte has the most significant bit set and the data bytes have the most significant bits cleared.
|
|