Interface for a MIDI input data object.
More...
#include <synthbase.h>
Interface for a MIDI input data object.
- The MIDI input data object stores MIDI data from the MIDI input stream; the interface provides read-access to the MIDI input object's MIDI Data
- There are three types of MIDI data
- Global Data:
- global (aka "Master") MIDI values such as volume and tuning
- the most recent two MIDI note on and note off messages (needed for portamento)
- CC Data:
- 128 CC values that should be organzied according to CC number
- Aux DAW data: not necessarily MIDI data, e.g. current DAW BPM
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ getAuxDAWDataFloat()
virtual float SynthLab::IMidiInputData::getAuxDAWDataFloat |
( |
uint32_t |
index | ) |
|
|
pure virtual |
get aux data as a float datatype, may or may not be MIDI value
- Parameters
-
- Returns
- the MIDI value coded as floating point value
Implemented in SynthLab::MidiInputData.
◆ getAuxDAWDataUINT()
virtual uint32_t SynthLab::IMidiInputData::getAuxDAWDataUINT |
( |
uint32_t |
index | ) |
|
|
pure virtual |
get aux data as a uint32_t datatype, may or may not be MIDI value
- Parameters
-
- Returns
- the MIDI value coded as a 32 bit unsigned integer
Implemented in SynthLab::MidiInputData.
◆ getCCMIDIData()
virtual uint32_t SynthLab::IMidiInputData::getCCMIDIData |
( |
uint32_t |
index | ) |
|
|
pure virtual |
get a MIDI CC value
- Example: get the MIDI volume CC #7
- uint32_t midiVolumeGain = midiInputData->getCCMIDIData(VOLUME_CC07);
- Parameters
-
index | index in the array of MIDI CC data values; a very few of these are already encoded as // — CONTINUOUS CONTROLLERS in synthconstants.h |
- Returns
- the MIDI value coded as an 32 bit unsigned integer
Implemented in SynthLab::MidiInputData.
◆ getGlobalMIDIData()
virtual uint32_t SynthLab::IMidiInputData::getGlobalMIDIData |
( |
uint32_t |
index | ) |
|
|
pure virtual |
get a global MIDI data value
- Example: get the MIDI pitch bend controller's current LSB value
- uint32_t lsb = processInfo.midiInputData->getGlobalMIDIData(kMIDIPitchBendDataLSB);
- Parameters
-
index | index in the array of MIDI global data values; see enum globalMIDI in the synthconstants.h file |
- Returns
- the MIDI value coded as an 32 bit unsigned integer
Implemented in SynthLab::MidiInputData.
The documentation for this class was generated from the following file: