@midi_getCommand(tab)
The argument is a tab representing a midi message, see function @midi_read. The @midi_getCommand extracts from this tab the command of the message (a number between 0x80 and 0x8f), or returns -1 if the message does not corresponds to a command.
See also Midi Related Functions @hz2midi @hz2midicent @hz2symb @midi_getChannel, @midi_getCommandByte, @midi_getCommand, @midi_getMetaType, @midi_isAftertouch, @midi_isController, @midi_isEndOfTrack, @midi_isMeta, @midi_isNoteOff, @midi_isNoteOn, @midi_isNote, @midi_isPatchChange, @midi_isPitchbend, @midi_isPressure, @midi_isTempo, @midi_read, @midi_track2ascii @midi2hz @midicent2hz @symb2midicent