OpenWareLaboratory
|
Public Member Functions | |
uint8_t | getChannel () |
uint8_t | getChannelPressure () |
uint8_t | getControllerNumber () |
uint8_t | getControllerValue () |
uint8_t | getNote () |
int16_t | getPitchBend () |
Get pitch bend value as a signed integer between -8192 and 8191. More... | |
uint8_t | getPolyKeyPressure () |
uint8_t | getPort () |
uint8_t | getProgramChange () |
uint8_t | getSize () |
uint8_t | getStatus () |
uint8_t | getVelocity () |
bool | isChannelPressure () |
bool | isControlChange () |
bool | isNote () |
bool | isNoteOff () |
bool | isNoteOn () |
bool | isPitchBend () |
bool | isPolyKeyPressure () |
bool | isProgramChange () |
bool | isSysEx () |
MidiMessage () | |
MidiMessage (uint32_t msg) | |
MidiMessage (uint8_t port, uint8_t d0, uint8_t d1, uint8_t d2) | |
Static Public Member Functions | |
static MidiMessage | cc (uint8_t ch, uint8_t cc, uint8_t value) |
static MidiMessage | cp (uint8_t ch, uint8_t value) |
static MidiMessage | note (uint8_t ch, uint8_t note, uint8_t velocity) |
static MidiMessage | pb (uint8_t ch, int16_t bend) |
static MidiMessage | pc (uint8_t ch, uint8_t pc) |
Data Fields | |
union { | |
uint8_t data [4] | |
uint32_t packed | |
}; | |
Definition at line 6 of file MidiMessage.h.
|
inline |
|
inline |
Definition at line 13 of file MidiMessage.h.
|
inline |
Definition at line 14 of file MidiMessage.h.
References data.
|
inlinestatic |
Definition at line 118 of file MidiMessage.h.
References CONTROL_CHANGE, MidiMessage(), and USB_COMMAND_CONTROL_CHANGE.
|
inlinestatic |
Definition at line 134 of file MidiMessage.h.
References CHANNEL_PRESSURE, MidiMessage(), and USB_COMMAND_CHANNEL_PRESSURE.
|
inline |
Definition at line 23 of file MidiMessage.h.
References data, and MIDI_CHANNEL_MASK.
Referenced by MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::getNoteChannel(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::isMasterChannel(), and MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::rpn().
|
inline |
Definition at line 72 of file MidiMessage.h.
References data.
Referenced by AbstractSynth::channelPressure(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::channelPressure(), and PolyphonicProcessor< SynthVoice, VOICES >::channelPressure().
|
inline |
Definition at line 66 of file MidiMessage.h.
References data.
Referenced by AbstractSynth::controlChange(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::controlChange(), and VoiceAllocator< SynthVoice, VOICES >::controlChange().
|
inline |
Definition at line 69 of file MidiMessage.h.
References data.
Referenced by AbstractSynth::controlChange(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::controlChange(), VoiceAllocator< SynthVoice, VOICES >::controlChange(), AbstractSynth::modulate(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::rpn(), and VoiceAllocator< SynthVoice, VOICES >::sustain().
|
inline |
Definition at line 60 of file MidiMessage.h.
References data.
Referenced by MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::findFreeVoice(), MonophonicProcessor< SynthVoice >::noteOff(), PolyphonicProcessor< SynthVoice, VOICES >::noteOff(), AbstractSynth::noteOn(), MonophonicProcessor< SynthVoice >::noteOn(), PolyphonicProcessor< SynthVoice, VOICES >::noteOn(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::polyKeyPressure(), PolyphonicProcessor< SynthVoice, VOICES >::polyKeyPressure(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::releaseVoicesForNote(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::take(), and PolyphonicProcessor< SynthVoice, VOICES >::take().
|
inline |
Get pitch bend value as a signed integer between -8192 and 8191.
Definition at line 84 of file MidiMessage.h.
Referenced by AbstractSynth::pitchbend(), and MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::pitchbend().
|
inline |
Definition at line 75 of file MidiMessage.h.
References data.
Referenced by AbstractSynth::polyKeyPressure(), MidiPolyphonicExpressionProcessor< SynthVoice, VOICES >::polyKeyPressure(), and PolyphonicProcessor< SynthVoice, VOICES >::polyKeyPressure().
|
inline |
Definition at line 20 of file MidiMessage.h.
References data.
|
inline |
Definition at line 78 of file MidiMessage.h.
References data.
|
inline |
Definition at line 29 of file MidiMessage.h.
References data, USB_COMMAND_2BYTE_SYSTEM_COMMON, USB_COMMAND_3BYTE_SYSTEM_COMMON, USB_COMMAND_CABLE_EVENT, USB_COMMAND_CHANNEL_PRESSURE, USB_COMMAND_CONTROL_CHANGE, USB_COMMAND_MISC, USB_COMMAND_NOTE_OFF, USB_COMMAND_NOTE_ON, USB_COMMAND_PITCH_BEND_CHANGE, USB_COMMAND_POLY_KEY_PRESSURE, USB_COMMAND_PROGRAM_CHANGE, USB_COMMAND_SINGLE_BYTE, USB_COMMAND_SYSEX, USB_COMMAND_SYSEX_EOX1, USB_COMMAND_SYSEX_EOX2, and USB_COMMAND_SYSEX_EOX3.
|
inline |
Definition at line 26 of file MidiMessage.h.
References data, and MIDI_STATUS_MASK.
|
inline |
Definition at line 63 of file MidiMessage.h.
References data.
Referenced by isNoteOff(), isNoteOn(), and AbstractSynth::noteOn().
|
inline |
Definition at line 109 of file MidiMessage.h.
References CHANNEL_PRESSURE, data, and MIDI_STATUS_MASK.
Referenced by MidiProcessor::process().
|
inline |
Definition at line 103 of file MidiMessage.h.
References CONTROL_CHANGE, data, and MIDI_STATUS_MASK.
Referenced by MidiProcessor::process().
|
inline |
Definition at line 88 of file MidiMessage.h.
References isNoteOff(), and isNoteOn().
|
inline |
Definition at line 94 of file MidiMessage.h.
References data, getVelocity(), MIDI_STATUS_MASK, NOTE_OFF, and NOTE_ON.
Referenced by isNote(), and MidiProcessor::process().
|
inline |
Definition at line 91 of file MidiMessage.h.
References data, getVelocity(), MIDI_STATUS_MASK, and NOTE_ON.
Referenced by isNote(), and MidiProcessor::process().
|
inline |
Definition at line 115 of file MidiMessage.h.
References data, MIDI_STATUS_MASK, and PITCH_BEND_CHANGE.
Referenced by MidiProcessor::process().
|
inline |
Definition at line 112 of file MidiMessage.h.
References data, MIDI_STATUS_MASK, and POLY_KEY_PRESSURE.
Referenced by MidiProcessor::process().
|
inline |
Definition at line 106 of file MidiMessage.h.
References data, MIDI_STATUS_MASK, and PROGRAM_CHANGE.
|
inline |
Definition at line 97 of file MidiMessage.h.
References data, USB_COMMAND_SYSEX, USB_COMMAND_SYSEX_EOX1, USB_COMMAND_SYSEX_EOX2, and USB_COMMAND_SYSEX_EOX3.
|
inlinestatic |
Definition at line 128 of file MidiMessage.h.
References MidiMessage(), NOTE_OFF, NOTE_ON, USB_COMMAND_NOTE_OFF, and USB_COMMAND_NOTE_ON.
|
inlinestatic |
Definition at line 124 of file MidiMessage.h.
References MidiMessage(), PITCH_BEND_CHANGE, and USB_COMMAND_PITCH_BEND_CHANGE.
Referenced by getPitchBend().
|
inlinestatic |
Definition at line 121 of file MidiMessage.h.
References MidiMessage(), PROGRAM_CHANGE, and USB_COMMAND_PROGRAM_CHANGE.
union { ... } |
uint8_t MidiMessage::data[4] |
Definition at line 10 of file MidiMessage.h.
Referenced by getChannel(), getChannelPressure(), getControllerNumber(), getControllerValue(), getNote(), getPitchBend(), getPolyKeyPressure(), getPort(), getProgramChange(), getSize(), getStatus(), getVelocity(), isChannelPressure(), isControlChange(), isNoteOff(), isNoteOn(), isPitchBend(), isPolyKeyPressure(), isProgramChange(), isSysEx(), and MidiMessage().
uint32_t MidiMessage::packed |
Definition at line 9 of file MidiMessage.h.