![]() |
fsh::stk
fantastic spatial holophonic synthesis toolkit
|
Represents a MIDI event, such as a note on/off or pitch bend. More...
#include <MidiEvent.h>
Public Types | |
enum class | Type { NoteOff = 0x80 , NoteOn = 0x90 , PitchBend = 0xE0 } |
MIDI event type. More... | |
Public Member Functions | |
MidiEvent (const juce::MidiMessageMetadata &) | |
Create a MIDI event from a juce::MidiMessageMetadata object. | |
auto | type () const -> Type |
Returns the MIDI event type. This may not necessarily be a valid enum element. | |
auto | data1 () const -> uint8_t |
Returns the first data byte (7 bits) of the MIDI event. | |
auto | data2 () const -> uint8_t |
Returns the second data byte (7 bits) of the MIDI event. | |
auto | fullData () const -> uint16_t |
Returns both data1() and data2() as a single 14-bit value. | |
Represents a MIDI event, such as a note on/off or pitch bend.
|
strong |
MIDI event type.
Enumerator | |
---|---|
NoteOff | |
NoteOn | |
PitchBend | Pitch bend event. fullData() = pitch bend value. |