midi_names.h
/* Names of standard MIDI events and controllers.
* Copyright (C) 2007-2009 David Robillard <http://drobilla.net>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef RAUL_MIDI_NAMES_H
#define RAUL_MIDI_NAMES_H
#include "raul/midi_events.h"
#ifdef __cplusplus
namespace Raul {
extern "C" {
#endif
inline static const char* midi_name(uint8_t status)
{
switch (status) {
case MIDI_CMD_NOTE_OFF:
return "Note Off"; break;
case MIDI_CMD_NOTE_ON:
return "Note On"; break;
case MIDI_CMD_NOTE_PRESSURE:
return "Key Pressure"; break;
case MIDI_CMD_CONTROL:
return "Control Change"; break;
case MIDI_CMD_PGM_CHANGE:
return "Program Change"; break;
case MIDI_CMD_CHANNEL_PRESSURE:
return "Channel Pressure"; break;
case MIDI_CMD_BENDER:
return "Pitch Bender"; break;
case MIDI_CMD_COMMON_SYSEX:
return "Sysex (System Exclusive) Begin"; break;
case MIDI_CMD_COMMON_MTC_QUARTER:
return "MTC Quarter Frame"; break;
case MIDI_CMD_COMMON_SONG_POS:
return "Song Position"; break;
case MIDI_CMD_COMMON_SONG_SELECT:
return "Song Select"; break;
case MIDI_CMD_COMMON_TUNE_REQUEST:
return "Tune Request"; break;
case MIDI_CMD_COMMON_SYSEX_END:
return "End of Sysex"; break;
case MIDI_CMD_COMMON_CLOCK:
return "Clock"; break;
case MIDI_CMD_COMMON_TICK:
return "Tick"; break;
case MIDI_CMD_COMMON_START:
return "Start"; break;
case MIDI_CMD_COMMON_CONTINUE:
return "Continue"; break;
case MIDI_CMD_COMMON_STOP:
return "Stop"; break;
case MIDI_CMD_COMMON_SENSING:
return "Active Sensing"; break;
case MIDI_CMD_COMMON_RESET:
return "Reset"; break;
case MIDI_CTL_MSB_BANK:
return "Bank Select (Coarse)"; break;
case MIDI_CTL_MSB_MODWHEEL:
return "Modulation (Coarse)"; break;
case MIDI_CTL_MSB_BREATH:
return "Breath (Coarse)"; break;
case MIDI_CTL_MSB_FOOT:
return "Foot (Coarse)"; break;
case MIDI_CTL_MSB_PORTAMENTO_TIME:
return "Portamento Time (Coarse)"; break;
case MIDI_CTL_MSB_DATA_ENTRY:
return "Data Entry (Coarse)"; break;
case MIDI_CTL_MSB_MAIN_VOLUME:
return "Main Volume (Coarse)"; break;
case MIDI_CTL_MSB_BALANCE:
return "Balance (Coarse)"; break;
case MIDI_CTL_MSB_PAN:
return "Pan (Coarse)"; break;
case MIDI_CTL_MSB_EXPRESSION:
return "Expression (Coarse)"; break;
case MIDI_CTL_MSB_EFFECT1:
return "Effect 1 (Coarse)"; break;
case MIDI_CTL_MSB_EFFECT2:
return "Effect 2 (Coarse)"; break;
case MIDI_CTL_MSB_GENERAL_PURPOSE1:
return "General Purpose 1 (Coarse)"; break;
case MIDI_CTL_MSB_GENERAL_PURPOSE2:
return "General Purpose 2 (Coarse)"; break;
case MIDI_CTL_MSB_GENERAL_PURPOSE3:
return "General Purpose 3 (Coarse)"; break;
case MIDI_CTL_MSB_GENERAL_PURPOSE4:
return "General Purpose 4 (Coarse)"; break;
case MIDI_CTL_LSB_BANK:
return "Bank Select (Fine)"; break;
case MIDI_CTL_LSB_MODWHEEL:
return "Modulation (Fine)"; break;
case MIDI_CTL_LSB_BREATH:
return "Breath (Fine)"; break;
case MIDI_CTL_LSB_FOOT:
return "Foot (Fine)"; break;
case MIDI_CTL_LSB_PORTAMENTO_TIME:
return "Portamento Time (Fine)"; break;
case MIDI_CTL_LSB_DATA_ENTRY:
return "Data Entry (Fine)"; break;
case MIDI_CTL_LSB_MAIN_VOLUME:
return "Main Volume (Fine)"; break;
case MIDI_CTL_LSB_BALANCE:
return "Balance (Fine)"; break;
case MIDI_CTL_LSB_PAN:
return "Pan (Fine)"; break;
case MIDI_CTL_LSB_EXPRESSION:
return "Expression (Fine)"; break;
case MIDI_CTL_LSB_EFFECT1:
return "Effect 1 (Fine)"; break;
case MIDI_CTL_LSB_EFFECT2:
return "Effect 2 (Fine)"; break;
case MIDI_CTL_LSB_GENERAL_PURPOSE1:
return "General Purpose 1 (Fine)"; break;
case MIDI_CTL_LSB_GENERAL_PURPOSE2:
return "General Purpose 2 (Fine)"; break;
case MIDI_CTL_LSB_GENERAL_PURPOSE3:
return "General Purpose 3 (Fine)"; break;
case MIDI_CTL_LSB_GENERAL_PURPOSE4:
return "General Purpose 4 (Fine)"; break;
case MIDI_CTL_SUSTAIN:
return "Sustain Pedal"; break;
case MIDI_CTL_PORTAMENTO:
return "Portamento"; break;
case MIDI_CTL_SOSTENUTO:
return "Sostenuto"; break;
case MIDI_CTL_SOFT_PEDAL:
return "Soft Pedal"; break;
case MIDI_CTL_LEGATO_FOOTSWITCH:
return "Legato Foot Switch"; break;
case MIDI_CTL_HOLD2:
return "Hold2"; break;
case MIDI_CTL_SC1_SOUND_VARIATION:
return "Sound Variation"; break;
case MIDI_CTL_SC2_TIMBRE:
return "Sound Timbre"; break;
case MIDI_CTL_SC3_RELEASE_TIME:
return "Sound Release Time"; break;
case MIDI_CTL_SC4_ATTACK_TIME:
return "Sound Attack Time"; break;
case MIDI_CTL_SC5_BRIGHTNESS:
return "Sound Brightness"; break;
case MIDI_CTL_SC6:
return "Sound Control 6"; break;
case MIDI_CTL_SC7:
return "Sound Control 7"; break;
case MIDI_CTL_SC8:
return "Sound Control 8"; break;
case MIDI_CTL_SC9:
return "Sound Control 9"; break;
case MIDI_CTL_SC10:
return "Sound Control 10"; break;
case MIDI_CTL_GENERAL_PURPOSE5:
return "General Purpose 5"; break;
case MIDI_CTL_GENERAL_PURPOSE6:
return "General Purpose 6"; break;
case MIDI_CTL_GENERAL_PURPOSE7:
return "General Purpose 7"; break;
case MIDI_CTL_GENERAL_PURPOSE8:
return "General Purpose 8"; break;
case MIDI_CTL_PORTAMENTO_CONTROL:
return "Portamento Control"; break;
case MIDI_CTL_E1_REVERB_DEPTH:
return "Reverb Depth"; break;
case MIDI_CTL_E2_TREMOLO_DEPTH:
return "Tremolo Depth"; break;
case MIDI_CTL_E3_CHORUS_DEPTH:
return "Chorus Depth"; break;
case MIDI_CTL_E4_DETUNE_DEPTH:
return "Detune Depth"; break;
case MIDI_CTL_E5_PHASER_DEPTH:
return "Phaser Depth"; break;
case MIDI_CTL_DATA_INCREMENT:
return "Data Increment"; break;
case MIDI_CTL_DATA_DECREMENT:
return "Data Decrement"; break;
case MIDI_CTL_NONREG_PARM_NUM_LSB:
return "Non-registered Parameter Number"; break;
case MIDI_CTL_NONREG_PARM_NUM_MSB:
return "Non-registered Narameter Number"; break;
case MIDI_CTL_REGIST_PARM_NUM_LSB:
return "Registered Parameter Number"; break;
case MIDI_CTL_REGIST_PARM_NUM_MSB:
return "Registered Parameter Number"; break;
case MIDI_CTL_ALL_SOUNDS_OFF:
return "All Sounds Off"; break;
case MIDI_CTL_RESET_CONTROLLERS:
return "Reset Controllers"; break;
case MIDI_CTL_LOCAL_CONTROL_SWITCH:
return "Local Control Switch"; break;
case MIDI_CTL_ALL_NOTES_OFF:
return "All Notes Off"; break;
case MIDI_CTL_OMNI_OFF:
return "Omni Off"; break;
case MIDI_CTL_OMNI_ON:
return "Omni On"; break;
case MIDI_CTL_MONO1:
return "Mono 1"; break;
case MIDI_CTL_MONO2:
return "Mono 2"; break;
default:
return "Unnamed"; break;
}
}
#ifdef __cplusplus
} // extern "C"
} // namespace Raul
#endif
#endif /* RAUL_MIDI_NAMES_H */
MIDI_CTL_MSB_PORTAMENTO_TIME
#define MIDI_CTL_MSB_PORTAMENTO_TIME
Portamento Time.
Definition: midi_events.h:41
MIDI_CTL_LSB_PAN
#define MIDI_CTL_LSB_PAN
Panpot.
Definition: midi_events.h:61
MIDI_CTL_MSB_BANK
#define MIDI_CTL_MSB_BANK
Bank Selection.
Definition: midi_events.h:37
MIDI_CTL_NONREG_PARM_NUM_LSB
#define MIDI_CTL_NONREG_PARM_NUM_LSB
Non-registered Parameter Number.
Definition: midi_events.h:97
MIDI_CMD_COMMON_CLOCK
#define MIDI_CMD_COMMON_CLOCK
Clock.
Definition: midi_events.h:124
MIDI_CMD_NOTE_OFF
#define MIDI_CMD_NOTE_OFF
Note Off.
Definition: midi_events.h:111
MIDI_CMD_NOTE_ON
#define MIDI_CMD_NOTE_ON
Note On.
Definition: midi_events.h:112
MIDI_CTL_PORTAMENTO_CONTROL
#define MIDI_CTL_PORTAMENTO_CONTROL
Portamento Control.
Definition: midi_events.h:89
MIDI_CTL_SC5_BRIGHTNESS
#define MIDI_CTL_SC5_BRIGHTNESS
SC5 Brightness.
Definition: midi_events.h:79
MIDI_CTL_LSB_MAIN_VOLUME
#define MIDI_CTL_LSB_MAIN_VOLUME
Main Volume.
Definition: midi_events.h:59
MIDI_CTL_LOCAL_CONTROL_SWITCH
#define MIDI_CTL_LOCAL_CONTROL_SWITCH
Local Control Switch.
Definition: midi_events.h:103
MIDI_CTL_MSB_EXPRESSION
#define MIDI_CTL_MSB_EXPRESSION
Expression.
Definition: midi_events.h:46
MIDI_CTL_SC8
#define MIDI_CTL_SC8
SC8.
Definition: midi_events.h:82
MIDI_CTL_LSB_BANK
#define MIDI_CTL_LSB_BANK
Bank Selection.
Definition: midi_events.h:53
MIDI_CTL_MSB_FOOT
#define MIDI_CTL_MSB_FOOT
Foot.
Definition: midi_events.h:40
MIDI_CTL_MSB_GENERAL_PURPOSE3
#define MIDI_CTL_MSB_GENERAL_PURPOSE3
General Purpose 3.
Definition: midi_events.h:51
MIDI_CMD_CHANNEL_PRESSURE
#define MIDI_CMD_CHANNEL_PRESSURE
Channel Pressure.
Definition: midi_events.h:116
MIDI_CTL_OMNI_ON
#define MIDI_CTL_OMNI_ON
Omni On.
Definition: midi_events.h:106
MIDI_CTL_SC4_ATTACK_TIME
#define MIDI_CTL_SC4_ATTACK_TIME
SC4 Attack Time.
Definition: midi_events.h:78
MIDI_CTL_LSB_EFFECT2
#define MIDI_CTL_LSB_EFFECT2
Effect2.
Definition: midi_events.h:64
MIDI_CTL_SC9
#define MIDI_CTL_SC9
SC9.
Definition: midi_events.h:83
MIDI_CMD_PGM_CHANGE
#define MIDI_CMD_PGM_CHANGE
Program Change.
Definition: midi_events.h:115
MIDI_CMD_COMMON_TUNE_REQUEST
#define MIDI_CMD_COMMON_TUNE_REQUEST
Tune Request.
Definition: midi_events.h:122
MIDI_CTL_MSB_GENERAL_PURPOSE1
#define MIDI_CTL_MSB_GENERAL_PURPOSE1
General Purpose 1.
Definition: midi_events.h:49
MIDI_CTL_MSB_MAIN_VOLUME
#define MIDI_CTL_MSB_MAIN_VOLUME
Main Volume.
Definition: midi_events.h:43
MIDI_CMD_COMMON_SONG_POS
#define MIDI_CMD_COMMON_SONG_POS
Song Position.
Definition: midi_events.h:120
MIDI_CMD_BENDER
#define MIDI_CMD_BENDER
Pitch Bender.
Definition: midi_events.h:117
MIDI_CTL_ALL_SOUNDS_OFF
#define MIDI_CTL_ALL_SOUNDS_OFF
All Sounds Off.
Definition: midi_events.h:101
MIDI_CTL_E2_TREMOLO_DEPTH
#define MIDI_CTL_E2_TREMOLO_DEPTH
E2 Tremolo Depth.
Definition: midi_events.h:91
MIDI_CTL_E3_CHORUS_DEPTH
#define MIDI_CTL_E3_CHORUS_DEPTH
E3 Chorus Depth.
Definition: midi_events.h:92
MIDI_CTL_MSB_EFFECT2
#define MIDI_CTL_MSB_EFFECT2
Effect2.
Definition: midi_events.h:48
MIDI_CTL_LSB_MODWHEEL
#define MIDI_CTL_LSB_MODWHEEL
Modulation.
Definition: midi_events.h:54
MIDI_CTL_MSB_DATA_ENTRY
#define MIDI_CTL_MSB_DATA_ENTRY
Data Entry.
Definition: midi_events.h:42
MIDI_CTL_LEGATO_FOOTSWITCH
#define MIDI_CTL_LEGATO_FOOTSWITCH
Legato Foot Switch.
Definition: midi_events.h:73
MIDI_CTL_RESET_CONTROLLERS
#define MIDI_CTL_RESET_CONTROLLERS
Reset Controllers.
Definition: midi_events.h:102
MIDI_CMD_COMMON_CONTINUE
#define MIDI_CMD_COMMON_CONTINUE
Continue.
Definition: midi_events.h:127
MIDI_CTL_LSB_DATA_ENTRY
#define MIDI_CTL_LSB_DATA_ENTRY
Data Entry.
Definition: midi_events.h:58
Raul
Definition: Array.hpp:26
MIDI_CTL_MSB_GENERAL_PURPOSE2
#define MIDI_CTL_MSB_GENERAL_PURPOSE2
General Purpose 2.
Definition: midi_events.h:50
MIDI_CMD_CONTROL
#define MIDI_CMD_CONTROL
Control Change.
Definition: midi_events.h:114
MIDI_CTL_REGIST_PARM_NUM_LSB
#define MIDI_CTL_REGIST_PARM_NUM_LSB
Registered Parameter Number.
Definition: midi_events.h:99
MIDI_CTL_GENERAL_PURPOSE6
#define MIDI_CTL_GENERAL_PURPOSE6
General Purpose 6.
Definition: midi_events.h:86
MIDI_CTL_SC7
#define MIDI_CTL_SC7
SC7.
Definition: midi_events.h:81
MIDI_CTL_HOLD2
#define MIDI_CTL_HOLD2
Hold2.
Definition: midi_events.h:74
MIDI_CTL_SC6
#define MIDI_CTL_SC6
SC6.
Definition: midi_events.h:80
MIDI_CTL_SUSTAIN
#define MIDI_CTL_SUSTAIN
Sustain Pedal.
Definition: midi_events.h:69
MIDI_CTL_REGIST_PARM_NUM_MSB
#define MIDI_CTL_REGIST_PARM_NUM_MSB
Registered Parameter Number.
Definition: midi_events.h:100
MIDI_CTL_MONO2
#define MIDI_CTL_MONO2
Mono2.
Definition: midi_events.h:108
MIDI_CTL_LSB_EFFECT1
#define MIDI_CTL_LSB_EFFECT1
Effect1.
Definition: midi_events.h:63
MIDI_CMD_COMMON_SENSING
#define MIDI_CMD_COMMON_SENSING
Active Sensing.
Definition: midi_events.h:129
MIDI_CTL_MSB_GENERAL_PURPOSE4
#define MIDI_CTL_MSB_GENERAL_PURPOSE4
General Purpose 4.
Definition: midi_events.h:52
MIDI_CTL_MSB_BALANCE
#define MIDI_CTL_MSB_BALANCE
Balance.
Definition: midi_events.h:44
MIDI_CTL_SC1_SOUND_VARIATION
#define MIDI_CTL_SC1_SOUND_VARIATION
SC1 Sound Variation.
Definition: midi_events.h:75
MIDI_CTL_GENERAL_PURPOSE7
#define MIDI_CTL_GENERAL_PURPOSE7
General Purpose 7.
Definition: midi_events.h:87
MIDI_CTL_LSB_GENERAL_PURPOSE3
#define MIDI_CTL_LSB_GENERAL_PURPOSE3
General Purpose 3.
Definition: midi_events.h:67
MIDI_CTL_SOSTENUTO
#define MIDI_CTL_SOSTENUTO
Sostenuto.
Definition: midi_events.h:71
MIDI_CMD_COMMON_MTC_QUARTER
#define MIDI_CMD_COMMON_MTC_QUARTER
MTC Quarter Frame.
Definition: midi_events.h:119
MIDI_CTL_NONREG_PARM_NUM_MSB
#define MIDI_CTL_NONREG_PARM_NUM_MSB
Non-registered Parameter Number.
Definition: midi_events.h:98
MIDI_CTL_E4_DETUNE_DEPTH
#define MIDI_CTL_E4_DETUNE_DEPTH
E4 Detune Depth.
Definition: midi_events.h:93
MIDI_CTL_OMNI_OFF
#define MIDI_CTL_OMNI_OFF
Omni Off.
Definition: midi_events.h:105
MIDI_CMD_COMMON_RESET
#define MIDI_CMD_COMMON_RESET
Reset.
Definition: midi_events.h:130
MIDI_CTL_MSB_PAN
#define MIDI_CTL_MSB_PAN
Panpot.
Definition: midi_events.h:45
MIDI_CTL_SC3_RELEASE_TIME
#define MIDI_CTL_SC3_RELEASE_TIME
SC3 Release Time.
Definition: midi_events.h:77
MIDI_CMD_COMMON_START
#define MIDI_CMD_COMMON_START
Start.
Definition: midi_events.h:126
MIDI_CTL_DATA_INCREMENT
#define MIDI_CTL_DATA_INCREMENT
Data Increment.
Definition: midi_events.h:95
MIDI_CMD_COMMON_SYSEX
#define MIDI_CMD_COMMON_SYSEX
Sysex (System Exclusive) Begin.
Definition: midi_events.h:118
MIDI_CTL_MSB_BREATH
#define MIDI_CTL_MSB_BREATH
Breath.
Definition: midi_events.h:39
MIDI_CMD_COMMON_TICK
#define MIDI_CMD_COMMON_TICK
Tick.
Definition: midi_events.h:125
MIDI_CTL_LSB_PORTAMENTO_TIME
#define MIDI_CTL_LSB_PORTAMENTO_TIME
Portamento Time.
Definition: midi_events.h:57
MIDI_CTL_LSB_GENERAL_PURPOSE2
#define MIDI_CTL_LSB_GENERAL_PURPOSE2
General Purpose 2.
Definition: midi_events.h:66
MIDI_CTL_LSB_GENERAL_PURPOSE1
#define MIDI_CTL_LSB_GENERAL_PURPOSE1
General Purpose 1.
Definition: midi_events.h:65
MIDI_CTL_E5_PHASER_DEPTH
#define MIDI_CTL_E5_PHASER_DEPTH
E5 Phaser Depth.
Definition: midi_events.h:94
MIDI_CTL_PORTAMENTO
#define MIDI_CTL_PORTAMENTO
Portamento.
Definition: midi_events.h:70
MIDI_CTL_SC2_TIMBRE
#define MIDI_CTL_SC2_TIMBRE
SC2 Timbre.
Definition: midi_events.h:76
MIDI_CTL_DATA_DECREMENT
#define MIDI_CTL_DATA_DECREMENT
Data Decrement.
Definition: midi_events.h:96
MIDI_CTL_MSB_MODWHEEL
#define MIDI_CTL_MSB_MODWHEEL
Modulation.
Definition: midi_events.h:38
MIDI_CTL_LSB_BALANCE
#define MIDI_CTL_LSB_BALANCE
Balance.
Definition: midi_events.h:60
MIDI_CTL_LSB_FOOT
#define MIDI_CTL_LSB_FOOT
Foot.
Definition: midi_events.h:56
MIDI_CTL_E1_REVERB_DEPTH
#define MIDI_CTL_E1_REVERB_DEPTH
E1 Reverb Depth.
Definition: midi_events.h:90
MIDI_CTL_MSB_EFFECT1
#define MIDI_CTL_MSB_EFFECT1
Effect1.
Definition: midi_events.h:47
MIDI_CMD_COMMON_SONG_SELECT
#define MIDI_CMD_COMMON_SONG_SELECT
Song Select.
Definition: midi_events.h:121
MIDI_CMD_NOTE_PRESSURE
#define MIDI_CMD_NOTE_PRESSURE
Key Pressure.
Definition: midi_events.h:113
MIDI_CTL_LSB_EXPRESSION
#define MIDI_CTL_LSB_EXPRESSION
Expression.
Definition: midi_events.h:62
MIDI_CTL_ALL_NOTES_OFF
#define MIDI_CTL_ALL_NOTES_OFF
All Notes Off.
Definition: midi_events.h:104
MIDI_CTL_GENERAL_PURPOSE8
#define MIDI_CTL_GENERAL_PURPOSE8
General Purpose 8.
Definition: midi_events.h:88
MIDI_CMD_COMMON_STOP
#define MIDI_CMD_COMMON_STOP
Stop.
Definition: midi_events.h:128
MIDI_CTL_GENERAL_PURPOSE5
#define MIDI_CTL_GENERAL_PURPOSE5
General Purpose 5.
Definition: midi_events.h:85
MIDI_CTL_LSB_BREATH
#define MIDI_CTL_LSB_BREATH
Breath.
Definition: midi_events.h:55
MIDI_CMD_COMMON_SYSEX_END
#define MIDI_CMD_COMMON_SYSEX_END
End of Sysex.
Definition: midi_events.h:123
MIDI_CTL_SC10
#define MIDI_CTL_SC10
SC10.
Definition: midi_events.h:84
MIDI_CTL_MONO1
#define MIDI_CTL_MONO1
Mono1.
Definition: midi_events.h:107
MIDI_CTL_LSB_GENERAL_PURPOSE4
#define MIDI_CTL_LSB_GENERAL_PURPOSE4
General Purpose 4.
Definition: midi_events.h:68
MIDI_CTL_SOFT_PEDAL
#define MIDI_CTL_SOFT_PEDAL
Soft Pedal.
Definition: midi_events.h:72