The easiest way to receive MIDI messages is with functions that are automatically called when each type of message is received.
which means there are callbacks for channel voice messages but not for channel mode, system common or real-time messages.The easiest way to receive MIDI channel voice messages is with functions that are automatically called when each type of message is received.
usbMIDI.getType()
(It seems that 'velocity change' means polyphonic aftertouch and 'after touch' means channel aftertouch).The supported types are: 0 = Note Off, 1 = Note On, 2 = Velocity Change, 3 = Control Change, 4 = Program Change, 5 = After Touch, 6 = Pitch Bend, 7 = System Exclusive
usbMIDI.getSysExArray()
usbMIDI.getData1()
For system exclusive messages, the message data is available as an array. Use getData1 to find the number of bytes stored in the array.