Control Surface master
MIDI Control Surface library for Arduino
Control_Change.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <Settings/NamespaceSettings.hpp>
5
7
10
14namespace MIDI_CC {
15
16constexpr uint8_t Bank_Select = 0x00;
17constexpr uint8_t Modulation_Wheel = 0x01;
18constexpr uint8_t Breath_Controller = 0x02;
19// 03 Undefined
20constexpr uint8_t Foot_Controller = 0x04;
21constexpr uint8_t Portamento_Time = 0x05;
22constexpr uint8_t Data_Entry_MSB = 0x06;
23constexpr uint8_t Channel_Volume = 0x07;
24constexpr uint8_t Balance = 0x08;
25// 09 Undefined
26constexpr uint8_t Pan = 0x0A;
27constexpr uint8_t Expression_Controller = 0x0B;
28constexpr uint8_t Effect_Control_1 = 0x0C;
29constexpr uint8_t Effect_Control_2 = 0x0D;
30// 0E Undefined
31// 0F Undefined
32constexpr uint8_t General_Purpose_Controller_1 = 0x10;
33constexpr uint8_t General_Purpose_Controller_2 = 0x11;
34constexpr uint8_t General_Purpose_Controller_3 = 0x12;
35constexpr uint8_t General_Purpose_Controller_4 = 0x13;
36// 14-1F Undefined
37
38// LSB
39
40constexpr uint8_t Bank_Select_LSB = 0x20 + 0x00;
41constexpr uint8_t Modulation_Wheel_LSB = 0x20 + 0x01;
42constexpr uint8_t Breath_Controller_LSB = 0x20 + 0x02;
43// 23 Undefined
44constexpr uint8_t Foot_Controller_LSB = 0x20 + 0x04;
45constexpr uint8_t Portamento_Time_LSB = 0x20 + 0x05;
46constexpr uint8_t Data_Entry_MSB_LSB = 0x20 + 0x06;
47constexpr uint8_t Channel_Volume_LSB = 0x20 + 0x07;
48constexpr uint8_t Balance_LSB = 0x20 + 0x08;
49// 29 Undefined
50constexpr uint8_t Pan_LSB = 0x20 + 0x0A;
51constexpr uint8_t Expression_Controller_LSB = 0x20 + 0x0B;
52constexpr uint8_t Effect_Control_1_LSB = 0x20 + 0x0C;
53constexpr uint8_t Effect_Control_2_LSB = 0x20 + 0x0D;
54// 2E Undefined
55// 2F Undefined
56constexpr uint8_t General_Purpose_Controller_1_LSB = 0x20 + 0x10;
57constexpr uint8_t General_Purpose_Controller_2_LSB = 0x20 + 0x11;
58constexpr uint8_t General_Purpose_Controller_3_LSB = 0x20 + 0x12;
59constexpr uint8_t General_Purpose_Controller_4_LSB = 0x20 + 0x13;
60// 34 - 3F Undefined
61
62constexpr uint8_t Damper_Pedal = 0x40;
63constexpr uint8_t Portamento = 0x41;
64constexpr uint8_t Sostenuto = 0x42;
65constexpr uint8_t Soft_Pedal = 0x43;
66constexpr uint8_t Legato_Footswitch = 0x44;
67constexpr uint8_t Hold_2 = 0x45;
68constexpr uint8_t Sound_Controller_1 = 0x46;
69constexpr uint8_t Sound_Controller_2 = 0x47;
70constexpr uint8_t Sound_Controller_3 = 0x48;
71constexpr uint8_t Sound_Controller_4 = 0x49;
72constexpr uint8_t Sound_Controller_5 = 0x4A;
73constexpr uint8_t Sound_Controller_6 = 0x4B;
74constexpr uint8_t Sound_Controller_7 = 0x4C;
75constexpr uint8_t Sound_Controller_8 = 0x4D;
76constexpr uint8_t Sound_Controller_9 = 0x4E;
77constexpr uint8_t Sound_Controller_10 = 0x4F;
78constexpr uint8_t General_Purpose_Controller_5 = 0x50;
79constexpr uint8_t General_Purpose_Controller_6 = 0x51;
80constexpr uint8_t General_Purpose_Controller_7 = 0x52;
81constexpr uint8_t General_Purpose_Controller_8 = 0x53;
82constexpr uint8_t Portamento_Control = 0x54;
83// 55-57 Undefined
84
85constexpr uint8_t High_Resolution_Velocity_Prefix = 0x58;
86// 59-5A Undefined
87
88constexpr uint8_t Effects_1 = 0x5B;
89constexpr uint8_t Effects_2 = 0x5C;
90constexpr uint8_t Effects_3 = 0x5D;
91constexpr uint8_t Effects_4 = 0x5E;
92constexpr uint8_t Effects_5 = 0x5F;
93
94constexpr uint8_t Data_Increment = 0x60;
95constexpr uint8_t Data_Decrement = 0x61;
96
97constexpr uint8_t NRPN_LSB = 0x62;
98constexpr uint8_t NRPN_MSB = 0x63;
99constexpr uint8_t RPN_LSB = 0x64;
100constexpr uint8_t RPN_MSB = 0x65;
101
102// Channel Mode Messages
103
104constexpr uint8_t All_Sound_Off = 0x78;
105constexpr uint8_t Reset_All_Controllers = 0x79;
106constexpr uint8_t Local_Control = 0x7A;
107constexpr uint8_t All_Notes_Off = 0x7B;
108constexpr uint8_t Omni_Mode_Off = 0x7C;
109constexpr uint8_t Omni_Mode_On = 0x7D;
110constexpr uint8_t Mono_Mode_On = 0x7E;
111constexpr uint8_t Poly_Mode_On = 0x7F;
112
113}
114
116
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Names and values for all MIDI Control Change Controller Numbers.
constexpr uint8_t High_Resolution_Velocity_Prefix
constexpr uint8_t General_Purpose_Controller_5
constexpr uint8_t Omni_Mode_Off
constexpr uint8_t Local_Control
constexpr uint8_t All_Sound_Off
constexpr uint8_t Sound_Controller_4
constexpr uint8_t Sound_Controller_3
constexpr uint8_t Poly_Mode_On
constexpr uint8_t Sound_Controller_8
constexpr uint8_t Mono_Mode_On
constexpr uint8_t Omni_Mode_On
constexpr uint8_t Foot_Controller
constexpr uint8_t Sostenuto
constexpr uint8_t Hold_2
constexpr uint8_t Sound_Controller_1
constexpr uint8_t Portamento
constexpr uint8_t Portamento_Time
constexpr uint8_t NRPN_LSB
constexpr uint8_t Bank_Select_LSB
constexpr uint8_t Data_Entry_MSB_LSB
constexpr uint8_t Sound_Controller_2
constexpr uint8_t Sound_Controller_10
constexpr uint8_t Modulation_Wheel
constexpr uint8_t Breath_Controller
constexpr uint8_t Expression_Controller
constexpr uint8_t Legato_Footswitch
constexpr uint8_t General_Purpose_Controller_7
constexpr uint8_t Sound_Controller_5
constexpr uint8_t General_Purpose_Controller_2_LSB
constexpr uint8_t Effects_5
constexpr uint8_t Damper_Pedal
constexpr uint8_t General_Purpose_Controller_3
constexpr uint8_t Pan
constexpr uint8_t Effects_2
constexpr uint8_t General_Purpose_Controller_1
constexpr uint8_t Effects_4
constexpr uint8_t General_Purpose_Controller_8
constexpr uint8_t Portamento_Control
constexpr uint8_t Data_Increment
constexpr uint8_t Bank_Select
constexpr uint8_t NRPN_MSB
constexpr uint8_t Pan_LSB
constexpr uint8_t Portamento_Time_LSB
constexpr uint8_t Soft_Pedal
constexpr uint8_t General_Purpose_Controller_1_LSB
constexpr uint8_t Expression_Controller_LSB
constexpr uint8_t Effect_Control_2
constexpr uint8_t Effects_1
constexpr uint8_t RPN_MSB
constexpr uint8_t Balance_LSB
constexpr uint8_t Data_Entry_MSB
constexpr uint8_t General_Purpose_Controller_3_LSB
constexpr uint8_t Channel_Volume_LSB
constexpr uint8_t General_Purpose_Controller_6
constexpr uint8_t Sound_Controller_7
constexpr uint8_t Effect_Control_1_LSB
constexpr uint8_t Effect_Control_2_LSB
constexpr uint8_t Channel_Volume
constexpr uint8_t Breath_Controller_LSB
constexpr uint8_t Modulation_Wheel_LSB
constexpr uint8_t General_Purpose_Controller_2
constexpr uint8_t Foot_Controller_LSB
constexpr uint8_t Reset_All_Controllers
constexpr uint8_t All_Notes_Off
constexpr uint8_t General_Purpose_Controller_4_LSB
constexpr uint8_t RPN_LSB
constexpr uint8_t Effects_3
constexpr uint8_t Sound_Controller_9
constexpr uint8_t Balance
constexpr uint8_t General_Purpose_Controller_4
constexpr uint8_t Sound_Controller_6
constexpr uint8_t Data_Decrement
constexpr uint8_t Effect_Control_1