23#include <juce_audio_basics/juce_audio_basics.h>
42 explicit MidiEvent(
const juce::MidiMessageMetadata&);
48 auto
data1() const -> uint8_t;
51 auto
data2() const -> uint8_t;
Represents a MIDI event, such as a note on/off or pitch bend.
Definition MidiEvent.h:31
auto type() const -> Type
Returns the MIDI event type. This may not necessarily be a valid enum element.
Definition MidiEvent.cpp:36
auto data1() const -> uint8_t
Returns the first data byte (7 bits) of the MIDI event.
Definition MidiEvent.cpp:41
Type
MIDI event type.
Definition MidiEvent.h:35
@ NoteOn
Note on event. data1() = note value, data2() = velocity.
@ NoteOff
Note off event. data1() = note value, data2() = velocity.
@ PitchBend
Pitch bend event. fullData() = pitch bend value.
MidiEvent(const juce::MidiMessageMetadata &)
Create a MIDI event from a juce::MidiMessageMetadata object.
Definition MidiEvent.cpp:26
auto fullData() const -> uint16_t
Returns both data1() and data2() as a single 14-bit value.
Definition MidiEvent.cpp:51
auto data2() const -> uint8_t
Returns the second data byte (7 bits) of the MIDI event.
Definition MidiEvent.cpp:46