fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
fsh::synth::MidiEvent Class Reference

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.
 

Detailed Description

Represents a MIDI event, such as a note on/off or pitch bend.

Member Enumeration Documentation

◆ Type

enum class fsh::synth::MidiEvent::Type
strong

MIDI event type.

Enumerator
NoteOff 

Note off event. data1() = note value, data2() = velocity.

NoteOn 

Note on event. data1() = note value, data2() = velocity.

PitchBend 

Pitch bend event. fullData() = pitch bend value.


The documentation for this class was generated from the following files: