Control Surface new-input
MIDI Control Surface library for Arduino
MIDI_MessageTypes.cpp
Go to the documentation of this file.
1 #include "MIDI_MessageTypes.hpp"
2 #include "Settings/NamespaceSettings.hpp"
3 
5 
7  using M = MIDIMessageType;
8  switch (m) {
9  case M::NONE: return F("NONE");
10  case M::NOTE_OFF: return F("NOTE_OFF");
11  case M::NOTE_ON: return F("NOTE_ON");
12  case M::KEY_PRESSURE: return F("KEY_PRESSURE");
13  case M::CONTROL_CHANGE: return F("CONTROL_CHANGE");
14  case M::PROGRAM_CHANGE: return F("PROGRAM_CHANGE");
15  case M::CHANNEL_PRESSURE: return F("CHANNEL_PRESSURE");
16  case M::PITCH_BEND: return F("PITCH_BEND");
17  case M::SYSEX_START: return F("SYSEX_START");
18  case M::MTC_QUARTER_FRAME: return F("MTC_QUARTER_FRAME");
19  case M::SONG_POSITION_POINTER: return F("SONG_POSITION_POINTER");
20  case M::SONG_SELECT: return F("SONG_SELECT");
21  case M::UNDEFINED_SYSCOMMON_1: return F("UNDEFINED_SYSCOMMON_1");
22  case M::UNDEFINED_SYSCOMMON_2: return F("UNDEFINED_SYSCOMMON_2");
23  case M::TUNE_REQUEST: return F("TUNE_REQUEST");
24  case M::SYSEX_END: return F("SYSEX_END");
25  case M::TIMING_CLOCK: return F("TIMING_CLOCK");
26  case M::UNDEFINED_REALTIME_1: return F("UNDEFINED_REALTIME_1");
27  case M::START: return F("START");
28  case M::CONTINUE: return F("CONTINUE");
29  case M::STOP: return F("STOP");
30  case M::UNDEFINED_REALTIME_2: return F("UNDEFINED_REALTIME_2");
31  case M::ACTIVE_SENSING: return F("ACTIVE_SENSING");
32  case M::SYSTEM_RESET: return F("SYSTEM_RESET");
33  default: return F("<invalid>");
34  }
35 }
36 
std::remove_reference< decltype(*F(""))>::type * FlashString_t
FlashString_t enum_to_string(MIDIMessageType m)
MIDIMessageType
All possible MIDI status byte values (without channel).
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE