Module Description
Constants, Types and Enum definitions that are common to both Device and Host modes for the USB MIDI Class.
#define MIDI_CHANNEL |
( |
|
channel | ) |
((channel) - 1) |
Convenience macro. MIDI channels are numbered from 1-10 (natural numbers) however the logical channel addresses are zero-indexed. This converts a natural MIDI channel number into the logical channel address.
- Parameters
-
channel | MIDI channel number to address. |
Definition at line 81 of file MIDIClassCommon.h.
#define MIDI_COMMAND_NOTE_OFF 0x80 |
MIDI command for a note off (deactivation) event.
Definition at line 70 of file MIDIClassCommon.h.
#define MIDI_COMMAND_NOTE_ON 0x90 |
MIDI command for a note on (activation) event.
Definition at line 67 of file MIDIClassCommon.h.
#define MIDI_STANDARD_VELOCITY 64 |
Standard key press velocity value used for all note events.
Definition at line 74 of file MIDIClassCommon.h.
Enum for the possible MIDI jack types in a MIDI device jack descriptor.
- Enumerator:
MIDI_JACKTYPE_Embedded |
MIDI class descriptor jack type value for an embedded (logical) MIDI input or output jack.
|
MIDI_JACKTYPE_External |
MIDI class descriptor jack type value for an external (physical) MIDI input or output jack.
|
Definition at line 85 of file MIDIClassCommon.h.