libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::MidiEvent Struct Reference

Detailed Description

Simple MidiEvent with message type, channel, and data[2] members.

#include <MidiEvent.h>

Public Member Functions

NoteOffEvent AsNoteOff ()
 
NoteOnEvent AsNoteOn ()
 
PolyphonicKeyPressureEvent AsPolyphonicKeyPressure ()
 
ControlChangeEvent AsControlChange ()
 
ProgramChangeEvent AsProgramChange ()
 
ChannelPressureEvent AsChannelPressure ()
 
PitchBendEvent AsPitchBend ()
 
ChannelModeEvent AsChannelMode ()
 
SystemExclusiveEvent AsSystemExclusive ()
 
MTCQuarterFrameEvent AsMTCQuarterFrame ()
 
SongPositionPointerEvent AsSongPositionPointer ()
 
SongSelectEvent AsSongSelect ()
 
AllSoundOffEvent AsAllSoundOff ()
 
ResetAllControllersEvent AsResetAllControllers ()
 
LocalControlEvent AsLocalControl ()
 
AllNotesOffEvent AsAllNotesOff ()
 
OmniModeOffEvent AsOmniModeOff ()
 
OmniModeOnEvent AsOmniModeOn ()
 
MonoModeOnEvent AsMonoModeOn ()
 
PolyModeOnEvent AsPolyModeOn ()
 

Static Public Member Functions

static const charGetTypeAsString (MidiEvent &msg)
 

Public Attributes

MidiMessageType type
 
int channel
 
uint8_t data [2]
 
uint8_t sysex_data [128]
 
uint8_t sysex_message_len
 
SystemCommonType sc_type
 
SystemRealTimeType srt_type
 
ChannelModeType cm_type
 

Member Function Documentation

◆ AsAllNotesOff()

AllNotesOffEvent daisy::MidiEvent::AsAllNotesOff ( )
inline

◆ AsAllSoundOff()

AllSoundOffEvent daisy::MidiEvent::AsAllSoundOff ( )
inline

◆ AsChannelMode()

ChannelModeEvent daisy::MidiEvent::AsChannelMode ( )
inline

◆ AsChannelPressure()

ChannelPressureEvent daisy::MidiEvent::AsChannelPressure ( )
inline

Returns the data within the MidiEvent as a ProgramChangeEvent struct.

◆ AsControlChange()

ControlChangeEvent daisy::MidiEvent::AsControlChange ( )
inline

Returns the data within the MidiEvent as a ControlChangeEvent struct.

◆ AsLocalControl()

LocalControlEvent daisy::MidiEvent::AsLocalControl ( )
inline

◆ AsMonoModeOn()

MonoModeOnEvent daisy::MidiEvent::AsMonoModeOn ( )
inline

◆ AsMTCQuarterFrame()

MTCQuarterFrameEvent daisy::MidiEvent::AsMTCQuarterFrame ( )
inline

◆ AsNoteOff()

NoteOffEvent daisy::MidiEvent::AsNoteOff ( )
inline

Returns the data within the MidiEvent as a NoteOffEvent struct

◆ AsNoteOn()

NoteOnEvent daisy::MidiEvent::AsNoteOn ( )
inline

Returns the data within the MidiEvent as a NoteOnEvent struct

◆ AsOmniModeOff()

OmniModeOffEvent daisy::MidiEvent::AsOmniModeOff ( )
inline

◆ AsOmniModeOn()

OmniModeOnEvent daisy::MidiEvent::AsOmniModeOn ( )
inline

◆ AsPitchBend()

PitchBendEvent daisy::MidiEvent::AsPitchBend ( )
inline

Returns the data within the MidiEvent as a PitchBendEvent struct.

◆ AsPolyModeOn()

PolyModeOnEvent daisy::MidiEvent::AsPolyModeOn ( )
inline

◆ AsPolyphonicKeyPressure()

PolyphonicKeyPressureEvent daisy::MidiEvent::AsPolyphonicKeyPressure ( )
inline

Returns the data within the MidiEvent as a PolyphonicKeyPressureEvent struct

◆ AsProgramChange()

ProgramChangeEvent daisy::MidiEvent::AsProgramChange ( )
inline

Returns the data within the MidiEvent as a ProgramChangeEvent struct.

◆ AsResetAllControllers()

ResetAllControllersEvent daisy::MidiEvent::AsResetAllControllers ( )
inline

◆ AsSongPositionPointer()

SongPositionPointerEvent daisy::MidiEvent::AsSongPositionPointer ( )
inline

◆ AsSongSelect()

SongSelectEvent daisy::MidiEvent::AsSongSelect ( )
inline

◆ AsSystemExclusive()

SystemExclusiveEvent daisy::MidiEvent::AsSystemExclusive ( )
inline

◆ GetTypeAsString()

static const char * daisy::MidiEvent::GetTypeAsString ( MidiEvent msg)
inlinestatic

Member Data Documentation

◆ channel

int daisy::MidiEvent::channel

&

◆ cm_type

ChannelModeType daisy::MidiEvent::cm_type

◆ data

uint8_t daisy::MidiEvent::data[2]

&

◆ sc_type

SystemCommonType daisy::MidiEvent::sc_type

◆ srt_type

SystemRealTimeType daisy::MidiEvent::srt_type

◆ sysex_data

uint8_t daisy::MidiEvent::sysex_data[128]

&

◆ sysex_message_len

uint8_t daisy::MidiEvent::sysex_message_len

◆ type

MidiMessageType daisy::MidiEvent::type

&


The documentation for this struct was generated from the following file: