Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
MCUNameFromNoteNumber.cpp
Go to the documentation of this file.
1
2// =============== AUTOMATICALLY GENERATED FILE: DO NOT EDIT! =============== //
3// //
4// Edit MCUNameFromNoteNumber.py instead. //
5
7
8const static char flashstr_0x00[] PROGMEM = "REC_RDY_1";
9const static char flashstr_0x01[] PROGMEM = "REC_RDY_2";
10const static char flashstr_0x02[] PROGMEM = "REC_RDY_3";
11const static char flashstr_0x03[] PROGMEM = "REC_RDY_4";
12const static char flashstr_0x04[] PROGMEM = "REC_RDY_5";
13const static char flashstr_0x05[] PROGMEM = "REC_RDY_6";
14const static char flashstr_0x06[] PROGMEM = "REC_RDY_7";
15const static char flashstr_0x07[] PROGMEM = "REC_RDY_8";
16const static char flashstr_0x08[] PROGMEM = "SOLO_1";
17const static char flashstr_0x09[] PROGMEM = "SOLO_2";
18const static char flashstr_0x0A[] PROGMEM = "SOLO_3";
19const static char flashstr_0x0B[] PROGMEM = "SOLO_4";
20const static char flashstr_0x0C[] PROGMEM = "SOLO_5";
21const static char flashstr_0x0D[] PROGMEM = "SOLO_6";
22const static char flashstr_0x0E[] PROGMEM = "SOLO_7";
23const static char flashstr_0x0F[] PROGMEM = "SOLO_8";
24const static char flashstr_0x10[] PROGMEM = "MUTE_1";
25const static char flashstr_0x11[] PROGMEM = "MUTE_2";
26const static char flashstr_0x12[] PROGMEM = "MUTE_3";
27const static char flashstr_0x13[] PROGMEM = "MUTE_4";
28const static char flashstr_0x14[] PROGMEM = "MUTE_5";
29const static char flashstr_0x15[] PROGMEM = "MUTE_6";
30const static char flashstr_0x16[] PROGMEM = "MUTE_7";
31const static char flashstr_0x17[] PROGMEM = "MUTE_8";
32const static char flashstr_0x18[] PROGMEM = "SELECT_1";
33const static char flashstr_0x19[] PROGMEM = "SELECT_2";
34const static char flashstr_0x1A[] PROGMEM = "SELECT_3";
35const static char flashstr_0x1B[] PROGMEM = "SELECT_4";
36const static char flashstr_0x1C[] PROGMEM = "SELECT_5";
37const static char flashstr_0x1D[] PROGMEM = "SELECT_6";
38const static char flashstr_0x1E[] PROGMEM = "SELECT_7";
39const static char flashstr_0x1F[] PROGMEM = "SELECT_8";
40const static char flashstr_0x20[] PROGMEM = "V_POT_SELECT_1";
41const static char flashstr_0x21[] PROGMEM = "V_POT_SELECT_2";
42const static char flashstr_0x22[] PROGMEM = "V_POT_SELECT_3";
43const static char flashstr_0x23[] PROGMEM = "V_POT_SELECT_4";
44const static char flashstr_0x24[] PROGMEM = "V_POT_SELECT_5";
45const static char flashstr_0x25[] PROGMEM = "V_POT_SELECT_6";
46const static char flashstr_0x26[] PROGMEM = "V_POT_SELECT_7";
47const static char flashstr_0x27[] PROGMEM = "V_POT_SELECT_8";
48const static char flashstr_0x28[] PROGMEM = "ASSIGN_TRACK";
49const static char flashstr_0x29[] PROGMEM = "ASSIGN_SEND";
50const static char flashstr_0x2A[] PROGMEM = "ASSIGN_PAN";
51const static char flashstr_0x2B[] PROGMEM = "ASSIGN_PLUGIN";
52const static char flashstr_0x2C[] PROGMEM = "ASSIGN_EQ";
53const static char flashstr_0x2D[] PROGMEM = "ASSIGN_INSTR";
54const static char flashstr_0x2E[] PROGMEM = "BANK_LEFT";
55const static char flashstr_0x2F[] PROGMEM = "BANK_RIGHT";
56const static char flashstr_0x30[] PROGMEM = "CHANNEL_LEFT";
57const static char flashstr_0x31[] PROGMEM = "CHANNEL_RIGHT";
58const static char flashstr_0x32[] PROGMEM = "FLIP";
59const static char flashstr_0x33[] PROGMEM = "GLOBAL_VIEW";
60const static char flashstr_0x34[] PROGMEM = "NAME_VALUE";
61const static char flashstr_0x35[] PROGMEM = "SMPTE_BEATS";
62const static char flashstr_0x36[] PROGMEM = "F1";
63const static char flashstr_0x37[] PROGMEM = "F2";
64const static char flashstr_0x38[] PROGMEM = "F3";
65const static char flashstr_0x39[] PROGMEM = "F4";
66const static char flashstr_0x3A[] PROGMEM = "F5";
67const static char flashstr_0x3B[] PROGMEM = "F6";
68const static char flashstr_0x3C[] PROGMEM = "F7";
69const static char flashstr_0x3D[] PROGMEM = "F8";
70const static char flashstr_0x3E[] PROGMEM = "VIEW_MIDI";
71const static char flashstr_0x3F[] PROGMEM = "VIEW_INPUTS";
72const static char flashstr_0x40[] PROGMEM = "VIEW_AUDIO";
73const static char flashstr_0x41[] PROGMEM = "VIEW_INSTR";
74const static char flashstr_0x42[] PROGMEM = "VIEW_AUX";
75const static char flashstr_0x43[] PROGMEM = "VIEW_BUSSES";
76const static char flashstr_0x44[] PROGMEM = "VIEW_OUTPUTS";
77const static char flashstr_0x45[] PROGMEM = "VIEW_USER";
78const static char flashstr_0x46[] PROGMEM = "SHIFT";
79const static char flashstr_0x47[] PROGMEM = "OPTION";
80const static char flashstr_0x48[] PROGMEM = "CONTROL";
81const static char flashstr_0x49[] PROGMEM = "CMD_ALT";
82const static char flashstr_0x4A[] PROGMEM = "AUTOMATION_READ_OFF";
83const static char flashstr_0x4B[] PROGMEM = "AUTOMATION_WRITE";
84const static char flashstr_0x4C[] PROGMEM = "AUTOMATION_TRIM";
85const static char flashstr_0x4D[] PROGMEM = "AUTOMATION_TOUCH";
86const static char flashstr_0x4E[] PROGMEM = "AUTOMATION_LATCH";
87const static char flashstr_0x4F[] PROGMEM = "GROUP";
88const static char flashstr_0x50[] PROGMEM = "SAVE";
89const static char flashstr_0x51[] PROGMEM = "UNDO";
90const static char flashstr_0x52[] PROGMEM = "CANCEL";
91const static char flashstr_0x53[] PROGMEM = "ENTER";
92const static char flashstr_0x54[] PROGMEM = "MARKER";
93const static char flashstr_0x55[] PROGMEM = "NUDGE";
94const static char flashstr_0x56[] PROGMEM = "CYCLE";
95const static char flashstr_0x57[] PROGMEM = "DROP";
96const static char flashstr_0x58[] PROGMEM = "REPLACE";
97const static char flashstr_0x59[] PROGMEM = "CLICK";
98const static char flashstr_0x5A[] PROGMEM = "SOLO";
99const static char flashstr_0x5B[] PROGMEM = "REWIND";
100const static char flashstr_0x5C[] PROGMEM = "FAST_FWD";
101const static char flashstr_0x5D[] PROGMEM = "STOP";
102const static char flashstr_0x5E[] PROGMEM = "PLAY";
103const static char flashstr_0x5F[] PROGMEM = "RECORD";
104const static char flashstr_0x60[] PROGMEM = "UP";
105const static char flashstr_0x61[] PROGMEM = "DOWN";
106const static char flashstr_0x62[] PROGMEM = "LEFT";
107const static char flashstr_0x63[] PROGMEM = "RIGHT";
108const static char flashstr_0x64[] PROGMEM = "ZOOM";
109const static char flashstr_0x65[] PROGMEM = "SCRUB";
110const static char flashstr_0x66[] PROGMEM = "USER_SWITCH_A";
111const static char flashstr_0x67[] PROGMEM = "USER_SWITCH_B";
112const static char flashstr_0x68[] PROGMEM = "FADER_TOUCH_1";
113const static char flashstr_0x69[] PROGMEM = "FADER_TOUCH_2";
114const static char flashstr_0x6A[] PROGMEM = "FADER_TOUCH_3";
115const static char flashstr_0x6B[] PROGMEM = "FADER_TOUCH_4";
116const static char flashstr_0x6C[] PROGMEM = "FADER_TOUCH_5";
117const static char flashstr_0x6D[] PROGMEM = "FADER_TOUCH_6";
118const static char flashstr_0x6E[] PROGMEM = "FADER_TOUCH_7";
119const static char flashstr_0x6F[] PROGMEM = "FADER_TOUCH_8";
120const static char flashstr_0x70[] PROGMEM = "FADER_TOUCH_MASTER";
121const static char flashstr_0x71[] PROGMEM = "SMPTE";
122const static char flashstr_0x72[] PROGMEM = "BEATS";
123const static char flashstr_0x73[] PROGMEM = "RUDE_SOLO";
124const static char flashstr_0x74[] PROGMEM = "0x74";
125const static char flashstr_0x75[] PROGMEM = "0x75";
126const static char flashstr_0x76[] PROGMEM = "RELAY";
127
128static FlashString_t const MCU_Note_Name_LUT[] PROGMEM = {
129 reinterpret_cast<FlashString_t>(flashstr_0x00),
130 reinterpret_cast<FlashString_t>(flashstr_0x01),
131 reinterpret_cast<FlashString_t>(flashstr_0x02),
132 reinterpret_cast<FlashString_t>(flashstr_0x03),
133 reinterpret_cast<FlashString_t>(flashstr_0x04),
134 reinterpret_cast<FlashString_t>(flashstr_0x05),
135 reinterpret_cast<FlashString_t>(flashstr_0x06),
136 reinterpret_cast<FlashString_t>(flashstr_0x07),
137 reinterpret_cast<FlashString_t>(flashstr_0x08),
138 reinterpret_cast<FlashString_t>(flashstr_0x09),
139 reinterpret_cast<FlashString_t>(flashstr_0x0A),
140 reinterpret_cast<FlashString_t>(flashstr_0x0B),
141 reinterpret_cast<FlashString_t>(flashstr_0x0C),
142 reinterpret_cast<FlashString_t>(flashstr_0x0D),
143 reinterpret_cast<FlashString_t>(flashstr_0x0E),
144 reinterpret_cast<FlashString_t>(flashstr_0x0F),
145 reinterpret_cast<FlashString_t>(flashstr_0x10),
146 reinterpret_cast<FlashString_t>(flashstr_0x11),
147 reinterpret_cast<FlashString_t>(flashstr_0x12),
148 reinterpret_cast<FlashString_t>(flashstr_0x13),
149 reinterpret_cast<FlashString_t>(flashstr_0x14),
150 reinterpret_cast<FlashString_t>(flashstr_0x15),
151 reinterpret_cast<FlashString_t>(flashstr_0x16),
152 reinterpret_cast<FlashString_t>(flashstr_0x17),
153 reinterpret_cast<FlashString_t>(flashstr_0x18),
154 reinterpret_cast<FlashString_t>(flashstr_0x19),
155 reinterpret_cast<FlashString_t>(flashstr_0x1A),
156 reinterpret_cast<FlashString_t>(flashstr_0x1B),
157 reinterpret_cast<FlashString_t>(flashstr_0x1C),
158 reinterpret_cast<FlashString_t>(flashstr_0x1D),
159 reinterpret_cast<FlashString_t>(flashstr_0x1E),
160 reinterpret_cast<FlashString_t>(flashstr_0x1F),
161 reinterpret_cast<FlashString_t>(flashstr_0x20),
162 reinterpret_cast<FlashString_t>(flashstr_0x21),
163 reinterpret_cast<FlashString_t>(flashstr_0x22),
164 reinterpret_cast<FlashString_t>(flashstr_0x23),
165 reinterpret_cast<FlashString_t>(flashstr_0x24),
166 reinterpret_cast<FlashString_t>(flashstr_0x25),
167 reinterpret_cast<FlashString_t>(flashstr_0x26),
168 reinterpret_cast<FlashString_t>(flashstr_0x27),
169 reinterpret_cast<FlashString_t>(flashstr_0x28),
170 reinterpret_cast<FlashString_t>(flashstr_0x29),
171 reinterpret_cast<FlashString_t>(flashstr_0x2A),
172 reinterpret_cast<FlashString_t>(flashstr_0x2B),
173 reinterpret_cast<FlashString_t>(flashstr_0x2C),
174 reinterpret_cast<FlashString_t>(flashstr_0x2D),
175 reinterpret_cast<FlashString_t>(flashstr_0x2E),
176 reinterpret_cast<FlashString_t>(flashstr_0x2F),
177 reinterpret_cast<FlashString_t>(flashstr_0x30),
178 reinterpret_cast<FlashString_t>(flashstr_0x31),
179 reinterpret_cast<FlashString_t>(flashstr_0x32),
180 reinterpret_cast<FlashString_t>(flashstr_0x33),
181 reinterpret_cast<FlashString_t>(flashstr_0x34),
182 reinterpret_cast<FlashString_t>(flashstr_0x35),
183 reinterpret_cast<FlashString_t>(flashstr_0x36),
184 reinterpret_cast<FlashString_t>(flashstr_0x37),
185 reinterpret_cast<FlashString_t>(flashstr_0x38),
186 reinterpret_cast<FlashString_t>(flashstr_0x39),
187 reinterpret_cast<FlashString_t>(flashstr_0x3A),
188 reinterpret_cast<FlashString_t>(flashstr_0x3B),
189 reinterpret_cast<FlashString_t>(flashstr_0x3C),
190 reinterpret_cast<FlashString_t>(flashstr_0x3D),
191 reinterpret_cast<FlashString_t>(flashstr_0x3E),
192 reinterpret_cast<FlashString_t>(flashstr_0x3F),
193 reinterpret_cast<FlashString_t>(flashstr_0x40),
194 reinterpret_cast<FlashString_t>(flashstr_0x41),
195 reinterpret_cast<FlashString_t>(flashstr_0x42),
196 reinterpret_cast<FlashString_t>(flashstr_0x43),
197 reinterpret_cast<FlashString_t>(flashstr_0x44),
198 reinterpret_cast<FlashString_t>(flashstr_0x45),
199 reinterpret_cast<FlashString_t>(flashstr_0x46),
200 reinterpret_cast<FlashString_t>(flashstr_0x47),
201 reinterpret_cast<FlashString_t>(flashstr_0x48),
202 reinterpret_cast<FlashString_t>(flashstr_0x49),
203 reinterpret_cast<FlashString_t>(flashstr_0x4A),
204 reinterpret_cast<FlashString_t>(flashstr_0x4B),
205 reinterpret_cast<FlashString_t>(flashstr_0x4C),
206 reinterpret_cast<FlashString_t>(flashstr_0x4D),
207 reinterpret_cast<FlashString_t>(flashstr_0x4E),
208 reinterpret_cast<FlashString_t>(flashstr_0x4F),
209 reinterpret_cast<FlashString_t>(flashstr_0x50),
210 reinterpret_cast<FlashString_t>(flashstr_0x51),
211 reinterpret_cast<FlashString_t>(flashstr_0x52),
212 reinterpret_cast<FlashString_t>(flashstr_0x53),
213 reinterpret_cast<FlashString_t>(flashstr_0x54),
214 reinterpret_cast<FlashString_t>(flashstr_0x55),
215 reinterpret_cast<FlashString_t>(flashstr_0x56),
216 reinterpret_cast<FlashString_t>(flashstr_0x57),
217 reinterpret_cast<FlashString_t>(flashstr_0x58),
218 reinterpret_cast<FlashString_t>(flashstr_0x59),
219 reinterpret_cast<FlashString_t>(flashstr_0x5A),
220 reinterpret_cast<FlashString_t>(flashstr_0x5B),
221 reinterpret_cast<FlashString_t>(flashstr_0x5C),
222 reinterpret_cast<FlashString_t>(flashstr_0x5D),
223 reinterpret_cast<FlashString_t>(flashstr_0x5E),
224 reinterpret_cast<FlashString_t>(flashstr_0x5F),
225 reinterpret_cast<FlashString_t>(flashstr_0x60),
226 reinterpret_cast<FlashString_t>(flashstr_0x61),
227 reinterpret_cast<FlashString_t>(flashstr_0x62),
228 reinterpret_cast<FlashString_t>(flashstr_0x63),
229 reinterpret_cast<FlashString_t>(flashstr_0x64),
230 reinterpret_cast<FlashString_t>(flashstr_0x65),
231 reinterpret_cast<FlashString_t>(flashstr_0x66),
232 reinterpret_cast<FlashString_t>(flashstr_0x67),
233 reinterpret_cast<FlashString_t>(flashstr_0x68),
234 reinterpret_cast<FlashString_t>(flashstr_0x69),
235 reinterpret_cast<FlashString_t>(flashstr_0x6A),
236 reinterpret_cast<FlashString_t>(flashstr_0x6B),
237 reinterpret_cast<FlashString_t>(flashstr_0x6C),
238 reinterpret_cast<FlashString_t>(flashstr_0x6D),
239 reinterpret_cast<FlashString_t>(flashstr_0x6E),
240 reinterpret_cast<FlashString_t>(flashstr_0x6F),
241 reinterpret_cast<FlashString_t>(flashstr_0x70),
242 reinterpret_cast<FlashString_t>(flashstr_0x71),
243 reinterpret_cast<FlashString_t>(flashstr_0x72),
244 reinterpret_cast<FlashString_t>(flashstr_0x73),
245 reinterpret_cast<FlashString_t>(flashstr_0x74),
246 reinterpret_cast<FlashString_t>(flashstr_0x75),
247 reinterpret_cast<FlashString_t>(flashstr_0x76),
248};
249
251namespace MCU {
252
254 const static char invalid[] PROGMEM = "<out-of-bounds>";
255 if (note >= 0x77)
256 return reinterpret_cast<FlashString_t>(invalid);
257 const void *flashptr = pgm_read_ptr_near(MCU_Note_Name_LUT + note);
258 return reinterpret_cast<FlashString_t>(flashptr);
259}
260
261} // namespace MCU
std::remove_reference< decltype(*F(""))>::type * FlashString_t
static const char flashstr_0x4B[]
static const char flashstr_0x32[]
static const char flashstr_0x4D[]
static const char flashstr_0x40[]
static const char flashstr_0x68[]
static const char flashstr_0x48[]
static const char flashstr_0x6A[]
static const char flashstr_0x0B[]
static const char flashstr_0x38[]
static const char flashstr_0x5F[]
static const char flashstr_0x0E[]
static const char flashstr_0x69[]
static const char flashstr_0x76[]
static const char flashstr_0x53[]
static const char flashstr_0x09[]
static FlashString_t const MCU_Note_Name_LUT[]
static const char flashstr_0x3C[]
static const char flashstr_0x51[]
static const char flashstr_0x1B[]
static const char flashstr_0x37[]
static const char flashstr_0x57[]
static const char flashstr_0x71[]
static const char flashstr_0x67[]
static const char flashstr_0x1F[]
static const char flashstr_0x49[]
static const char flashstr_0x14[]
static const char flashstr_0x6B[]
static const char flashstr_0x74[]
static const char flashstr_0x36[]
static const char flashstr_0x11[]
static const char flashstr_0x3E[]
static const char flashstr_0x07[]
static const char flashstr_0x2E[]
static const char flashstr_0x73[]
static const char flashstr_0x06[]
static const char flashstr_0x3B[]
static const char flashstr_0x4F[]
static const char flashstr_0x20[]
static const char flashstr_0x5C[]
static const char flashstr_0x4C[]
static const char flashstr_0x52[]
static const char flashstr_0x56[]
static const char flashstr_0x70[]
static const char flashstr_0x27[]
static const char flashstr_0x5D[]
static const char flashstr_0x6F[]
static const char flashstr_0x47[]
static const char flashstr_0x60[]
static const char flashstr_0x66[]
static const char flashstr_0x41[]
static const char flashstr_0x29[]
static const char flashstr_0x63[]
static const char flashstr_0x5A[]
static const char flashstr_0x12[]
static const char flashstr_0x2D[]
static const char flashstr_0x75[]
static const char flashstr_0x58[]
static const char flashstr_0x2A[]
static const char flashstr_0x0A[]
static const char flashstr_0x43[]
static const char flashstr_0x50[]
static const char flashstr_0x34[]
static const char flashstr_0x65[]
static const char flashstr_0x04[]
static const char flashstr_0x4E[]
static const char flashstr_0x24[]
static const char flashstr_0x2F[]
static const char flashstr_0x03[]
static const char flashstr_0x2C[]
static const char flashstr_0x01[]
static const char flashstr_0x30[]
static const char flashstr_0x15[]
static const char flashstr_0x35[]
static const char flashstr_0x13[]
static const char flashstr_0x31[]
static const char flashstr_0x26[]
static const char flashstr_0x21[]
static const char flashstr_0x42[]
static const char flashstr_0x00[]
static const char flashstr_0x0D[]
static const char flashstr_0x3F[]
static const char flashstr_0x22[]
static const char flashstr_0x28[]
static const char flashstr_0x25[]
static const char flashstr_0x02[]
static const char flashstr_0x6C[]
static const char flashstr_0x17[]
static const char flashstr_0x0F[]
static const char flashstr_0x39[]
static const char flashstr_0x5E[]
static const char flashstr_0x33[]
static const char flashstr_0x08[]
static const char flashstr_0x1E[]
static const char flashstr_0x23[]
static const char flashstr_0x45[]
static const char flashstr_0x1D[]
static const char flashstr_0x5B[]
static const char flashstr_0x3A[]
static const char flashstr_0x6D[]
static const char flashstr_0x72[]
static const char flashstr_0x19[]
static const char flashstr_0x6E[]
static const char flashstr_0x0C[]
static const char flashstr_0x55[]
static const char flashstr_0x62[]
static const char flashstr_0x1A[]
static const char flashstr_0x1C[]
static const char flashstr_0x3D[]
static const char flashstr_0x59[]
static const char flashstr_0x44[]
static const char flashstr_0x4A[]
static const char flashstr_0x18[]
static const char flashstr_0x64[]
static const char flashstr_0x2B[]
static const char flashstr_0x54[]
static const char flashstr_0x05[]
static const char flashstr_0x61[]
static const char flashstr_0x16[]
static const char flashstr_0x46[]
static const char flashstr_0x10[]
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
FlashString_t getMCUNameFromNoteNumber(uint8_t note)
Convert a note number to the name of the corresponding Mackie Control Universal function.