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