This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
MCU.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Def/Channel.hpp>
4 
6 
9 
14 namespace MCU {
15 
16 // Notes
17 
18 constexpr uint8_t REC_RDY_1 = 0x00; // In Out
19 constexpr uint8_t REC_RDY_2 = 0x01; // In Out
20 constexpr uint8_t REC_RDY_3 = 0x02; // In Out
21 constexpr uint8_t REC_RDY_4 = 0x03; // In Out
22 constexpr uint8_t REC_RDY_5 = 0x04; // In Out
23 constexpr uint8_t REC_RDY_6 = 0x05; // In Out
24 constexpr uint8_t REC_RDY_7 = 0x06; // In Out
25 constexpr uint8_t REC_RDY_8 = 0x07; // In Out
26 
27 constexpr uint8_t SOLO_1 = 0x08; // In Out
28 constexpr uint8_t SOLO_2 = 0x09; // In Out
29 constexpr uint8_t SOLO_3 = 0x0A; // In Out
30 constexpr uint8_t SOLO_4 = 0x0B; // In Out
31 constexpr uint8_t SOLO_5 = 0x0C; // In Out
32 constexpr uint8_t SOLO_6 = 0x0D; // In Out
33 constexpr uint8_t SOLO_7 = 0x0E; // In Out
34 constexpr uint8_t SOLO_8 = 0x0F; // In Out
35 
36 constexpr uint8_t MUTE_1 = 0x10; // In Out
37 constexpr uint8_t MUTE_2 = 0x11; // In Out
38 constexpr uint8_t MUTE_3 = 0x12; // In Out
39 constexpr uint8_t MUTE_4 = 0x13; // In Out
40 constexpr uint8_t MUTE_5 = 0x14; // In Out
41 constexpr uint8_t MUTE_6 = 0x15; // In Out
42 constexpr uint8_t MUTE_7 = 0x16; // In Out
43 constexpr uint8_t MUTE_8 = 0x17; // In Out
44 
45 constexpr uint8_t SELECT_1 = 0x18; // In Out
46 constexpr uint8_t SELECT_2 = 0x19; // In Out
47 constexpr uint8_t SELECT_3 = 0x1A; // In Out
48 constexpr uint8_t SELECT_4 = 0x1B; // In Out
49 constexpr uint8_t SELECT_5 = 0x1C; // In Out
50 constexpr uint8_t SELECT_6 = 0x1D; // In Out
51 constexpr uint8_t SELECT_7 = 0x1E; // In Out
52 constexpr uint8_t SELECT_8 = 0x1F; // In Out
53 
54 constexpr uint8_t V_POT_SELECT_1 = 0x20; // In Out
55 constexpr uint8_t V_POT_SELECT_2 = 0x21; // In Out
56 constexpr uint8_t V_POT_SELECT_3 = 0x22; // In Out
57 constexpr uint8_t V_POT_SELECT_4 = 0x23; // In Out
58 constexpr uint8_t V_POT_SELECT_5 = 0x24; // In Out
59 constexpr uint8_t V_POT_SELECT_6 = 0x25; // In Out
60 constexpr uint8_t V_POT_SELECT_7 = 0x26; // In Out
61 constexpr uint8_t V_POT_SELECT_8 = 0x27; // In Out
62 
63 constexpr uint8_t ASSIGN_TRACK = 0x28; // In Out
64 constexpr uint8_t ASSIGN_SEND = 0x29; // In Out
65 constexpr uint8_t ASSIGN_PAN = 0x2A; // In Out
66 constexpr uint8_t ASSIGN_PLUGIN = 0x2B; // In Out
67 constexpr uint8_t ASSIGN_EQ = 0x2C; // In Out
68 constexpr uint8_t ASSIGN_INSTR = 0x2D; // In Out
69 
70 constexpr uint8_t BANK_LEFT = 0x2E; // Out
71 constexpr uint8_t BANK_RIGHT = 0x2F; // Out
72 constexpr uint8_t CHANNEL_LEFT = 0x30; // Out
73 constexpr uint8_t CHANNEL_RIGHT = 0x31; // Out
74 
75 constexpr uint8_t FLIP = 0x32; // In Out
76 constexpr uint8_t GLOBAL_VIEW = 0x33; // In Out
77 constexpr uint8_t NAME_VALUE = 0x34; // Out
78 constexpr uint8_t SMPTE_BEATS = 0x35; // Out
79 
80 constexpr uint8_t F1 = 0x36; // Out
81 constexpr uint8_t F2 = 0x37; // Out
82 constexpr uint8_t F3 = 0x38; // Out
83 constexpr uint8_t F4 = 0x39; // Out
84 constexpr uint8_t F5 = 0x3A; // Out
85 constexpr uint8_t F6 = 0x3B; // Out
86 constexpr uint8_t F7 = 0x3C; // Out
87 constexpr uint8_t F8 = 0x3D; // Out
88 
89 constexpr uint8_t VIEW_MIDI = 0x3E; // Out
90 constexpr uint8_t VIEW_INPUTS = 0x3F; // Out
91 constexpr uint8_t VIEW_AUDIO = 0x40; // Out
92 constexpr uint8_t VIEW_INSTR = 0x41; // Out
93 constexpr uint8_t VIEW_AUX = 0x42; // Out
94 constexpr uint8_t VIEW_BUSSES = 0x43; // Out
95 constexpr uint8_t VIEW_OUTPUTS = 0x44; // Out
96 constexpr uint8_t VIEW_USER = 0x45; // Out
97 
98 constexpr uint8_t SHIFT = 0x46; // Out
99 constexpr uint8_t OPTION = 0x47; // Out
100 constexpr uint8_t CONTROL = 0x48; // Out
101 constexpr uint8_t CMD_ALT = 0x49; // Out
102 
103 constexpr uint8_t AUTOMATION_READ_OFF = 0x4A; // In Out
104 constexpr uint8_t AUTOMATION_WRITE = 0x4B; // In Out
105 constexpr uint8_t AUTOMATION_TRIM = 0x4C; // In Out
106 constexpr uint8_t AUTOMATION_TOUCH = 0x4D; // In Out
107 constexpr uint8_t AUTOMATION_LATCH = 0x4E; // In Out
108 
109 constexpr uint8_t GROUP = 0x4F; // In Out
110 constexpr uint8_t SAVE = 0x50; // In Out
111 constexpr uint8_t UNDO = 0x51; // In Out
112 constexpr uint8_t CANCEL = 0x52; // Out
113 constexpr uint8_t ENTER = 0x53; // Out
114 
115 constexpr uint8_t MARKER = 0x54; // In Out
116 constexpr uint8_t NUDGE = 0x55; // In Out
117 constexpr uint8_t CYCLE = 0x56; // In Out
118 constexpr uint8_t DROP = 0x57; // In Out
119 constexpr uint8_t REPLACE = 0x58; // In Out
120 constexpr uint8_t CLICK = 0x59; // In Out
121 constexpr uint8_t SOLO = 0x5A; // In Out
122 
123 constexpr uint8_t REWIND = 0x5B; // In Out
124 constexpr uint8_t FAST_FWD = 0x5C; // In Out
125 constexpr uint8_t STOP = 0x5D; // In Out
126 constexpr uint8_t PLAY = 0x5E; // In Out
127 constexpr uint8_t RECORD = 0x5F; // In Out
128 
129 constexpr uint8_t UP = 0x60; // Out
130 constexpr uint8_t DOWN = 0x61; // Out
131 constexpr uint8_t LEFT = 0x62; // Out
132 constexpr uint8_t RIGHT = 0x63; // Out
133 
134 constexpr uint8_t ZOOM = 0x64; // In Out
135 constexpr uint8_t SCRUB = 0x65; // In Out
136 
137 constexpr uint8_t USER_SWITCH_A = 0x66; // Out
138 constexpr uint8_t USER_SWITCH_B = 0x67; // Out
139 
140 constexpr uint8_t FADER_TOUCH = 0x68; // Out
141 constexpr uint8_t FADER_TOUCH_MASTER = 0x70; // Out
142 
143 constexpr uint8_t SMPTE = 0x71; // In
144 constexpr uint8_t BEATS = 0x72; // In
145 
146 constexpr uint8_t RUDE_SOLO = 0x73; // In
147 
148 constexpr uint8_t RELAY = 0x76; // In
149 
150 // Control Change
151 
152 constexpr uint8_t V_POT_1 = 0x10; // Out
153 constexpr uint8_t V_POT_2 = 0x11; // Out
154 constexpr uint8_t V_POT_3 = 0x12; // Out
155 constexpr uint8_t V_POT_4 = 0x13; // Out
156 constexpr uint8_t V_POT_5 = 0x14; // Out
157 constexpr uint8_t V_POT_6 = 0x15; // Out
158 constexpr uint8_t V_POT_7 = 0x16; // Out
159 constexpr uint8_t V_POT_8 = 0x17; // Out
160 
161 constexpr uint8_t EXTERNAL_CONTROLLER = 0x2E; // Out
162 
163 constexpr uint8_t JOG_WHEEL = 0x3C; // Out
164 
165 // Pitch Bend
166 
167 constexpr Channel VOLUME_1 = CHANNEL_1; // In Out
168 constexpr Channel VOLUME_2 = CHANNEL_2; // In Out
169 constexpr Channel VOLUME_3 = CHANNEL_3; // In Out
170 constexpr Channel VOLUME_4 = CHANNEL_4; // In Out
171 constexpr Channel VOLUME_5 = CHANNEL_5; // In Out
172 constexpr Channel VOLUME_6 = CHANNEL_6; // In Out
173 constexpr Channel VOLUME_7 = CHANNEL_7; // In Out
174 constexpr Channel VOLUME_8 = CHANNEL_8; // In Out
175 
176 constexpr Channel MASTER_VOLUME = CHANNEL_9; // In Out
177 
178 } // namespace MCU
179 
181 
183 
184 #include "MCUNameFromNoteNumber.hpp"
MCU::BANK_RIGHT
constexpr uint8_t BANK_RIGHT
Definition: MCU.hpp:71
MCU::DOWN
constexpr uint8_t DOWN
Definition: MCU.hpp:130
MCU::USER_SWITCH_A
constexpr uint8_t USER_SWITCH_A
Definition: MCU.hpp:137
MCU::V_POT_3
constexpr uint8_t V_POT_3
Definition: MCU.hpp:154
MCU::VOLUME_1
constexpr Channel VOLUME_1
Definition: MCU.hpp:167
MCU::OPTION
constexpr uint8_t OPTION
Definition: MCU.hpp:99
MCU::REC_RDY_6
constexpr uint8_t REC_RDY_6
Definition: MCU.hpp:23
Channel
A type-safe class for MIDI channels.
Definition: Channel.hpp:13
MCU::VIEW_INSTR
constexpr uint8_t VIEW_INSTR
Definition: MCU.hpp:92
MCU::NUDGE
constexpr uint8_t NUDGE
Definition: MCU.hpp:116
MCU::SELECT_4
constexpr uint8_t SELECT_4
Definition: MCU.hpp:48
MCU::FADER_TOUCH_MASTER
constexpr uint8_t FADER_TOUCH_MASTER
Definition: MCU.hpp:141
MCU::SOLO_5
constexpr uint8_t SOLO_5
Definition: MCU.hpp:31
MCU::SELECT_1
constexpr uint8_t SELECT_1
Definition: MCU.hpp:45
MCU::CLICK
constexpr uint8_t CLICK
Definition: MCU.hpp:120
MCU::VOLUME_4
constexpr Channel VOLUME_4
Definition: MCU.hpp:170
MCU::F8
constexpr uint8_t F8
Definition: MCU.hpp:87
MCU::REPLACE
constexpr uint8_t REPLACE
Definition: MCU.hpp:119
MCU::VIEW_OUTPUTS
constexpr uint8_t VIEW_OUTPUTS
Definition: MCU.hpp:95
MCU::USER_SWITCH_B
constexpr uint8_t USER_SWITCH_B
Definition: MCU.hpp:138
MCU::RELAY
constexpr uint8_t RELAY
Definition: MCU.hpp:148
MCU::V_POT_SELECT_3
constexpr uint8_t V_POT_SELECT_3
Definition: MCU.hpp:56
MCU::SELECT_3
constexpr uint8_t SELECT_3
Definition: MCU.hpp:47
MCU::SOLO_7
constexpr uint8_t SOLO_7
Definition: MCU.hpp:33
MCU::RECORD
constexpr uint8_t RECORD
Definition: MCU.hpp:127
MCU::MUTE_3
constexpr uint8_t MUTE_3
Definition: MCU.hpp:38
MCU::LEFT
constexpr uint8_t LEFT
Definition: MCU.hpp:131
MCU::UP
constexpr uint8_t UP
Definition: MCU.hpp:129
CHANNEL_3
constexpr Channel CHANNEL_3
Definition: Channel.hpp:113
MCU::VIEW_USER
constexpr uint8_t VIEW_USER
Definition: MCU.hpp:96
MCU
Names and note and controller numbers for the Mackie Control Universal (MCU) protocol.
Definition: LCDDisplay.hpp:10
MCU::ASSIGN_TRACK
constexpr uint8_t ASSIGN_TRACK
Definition: MCU.hpp:63
MCU::MUTE_2
constexpr uint8_t MUTE_2
Definition: MCU.hpp:37
MCU::SOLO_4
constexpr uint8_t SOLO_4
Definition: MCU.hpp:30
MCU::AUTOMATION_LATCH
constexpr uint8_t AUTOMATION_LATCH
Definition: MCU.hpp:107
MCU::MUTE_7
constexpr uint8_t MUTE_7
Definition: MCU.hpp:42
MCU::SELECT_7
constexpr uint8_t SELECT_7
Definition: MCU.hpp:51
CHANNEL_6
constexpr Channel CHANNEL_6
Definition: Channel.hpp:116
MCU::ASSIGN_PAN
constexpr uint8_t ASSIGN_PAN
Definition: MCU.hpp:65
MCU::CHANNEL_LEFT
constexpr uint8_t CHANNEL_LEFT
Definition: MCU.hpp:72
MCU::F6
constexpr uint8_t F6
Definition: MCU.hpp:85
MCU::SOLO_1
constexpr uint8_t SOLO_1
Definition: MCU.hpp:27
MCU::ASSIGN_INSTR
constexpr uint8_t ASSIGN_INSTR
Definition: MCU.hpp:68
MCU::NAME_VALUE
constexpr uint8_t NAME_VALUE
Definition: MCU.hpp:77
MCU::AUTOMATION_WRITE
constexpr uint8_t AUTOMATION_WRITE
Definition: MCU.hpp:104
MCU::MUTE_6
constexpr uint8_t MUTE_6
Definition: MCU.hpp:41
MCU::REC_RDY_1
constexpr uint8_t REC_RDY_1
Definition: MCU.hpp:18
MCU::V_POT_SELECT_7
constexpr uint8_t V_POT_SELECT_7
Definition: MCU.hpp:60
MCU::SELECT_2
constexpr uint8_t SELECT_2
Definition: MCU.hpp:46
MCU::AUTOMATION_TOUCH
constexpr uint8_t AUTOMATION_TOUCH
Definition: MCU.hpp:106
MCU::FADER_TOUCH
constexpr uint8_t FADER_TOUCH
Definition: MCU.hpp:140
MCU::V_POT_SELECT_6
constexpr uint8_t V_POT_SELECT_6
Definition: MCU.hpp:59
CHANNEL_8
constexpr Channel CHANNEL_8
Definition: Channel.hpp:118
MCU::VIEW_AUDIO
constexpr uint8_t VIEW_AUDIO
Definition: MCU.hpp:91
MCU::V_POT_SELECT_8
constexpr uint8_t V_POT_SELECT_8
Definition: MCU.hpp:61
MCU::SHIFT
constexpr uint8_t SHIFT
Definition: MCU.hpp:98
MCU::V_POT_SELECT_4
constexpr uint8_t V_POT_SELECT_4
Definition: MCU.hpp:57
MCU::F1
constexpr uint8_t F1
Definition: MCU.hpp:80
MCU::F5
constexpr uint8_t F5
Definition: MCU.hpp:84
MCU::V_POT_SELECT_5
constexpr uint8_t V_POT_SELECT_5
Definition: MCU.hpp:58
MCU::REC_RDY_3
constexpr uint8_t REC_RDY_3
Definition: MCU.hpp:20
MCU::JOG_WHEEL
constexpr uint8_t JOG_WHEEL
Definition: MCU.hpp:163
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
MCU::MUTE_5
constexpr uint8_t MUTE_5
Definition: MCU.hpp:40
MCU::MUTE_1
constexpr uint8_t MUTE_1
Definition: MCU.hpp:36
MCU::SOLO
constexpr uint8_t SOLO
Definition: MCU.hpp:121
MCU::CMD_ALT
constexpr uint8_t CMD_ALT
Definition: MCU.hpp:101
CHANNEL_7
constexpr Channel CHANNEL_7
Definition: Channel.hpp:117
MCU::SMPTE_BEATS
constexpr uint8_t SMPTE_BEATS
Definition: MCU.hpp:78
MCU::VOLUME_3
constexpr Channel VOLUME_3
Definition: MCU.hpp:169
MCU::VOLUME_6
constexpr Channel VOLUME_6
Definition: MCU.hpp:172
MCU::EXTERNAL_CONTROLLER
constexpr uint8_t EXTERNAL_CONTROLLER
Definition: MCU.hpp:161
MCU::BEATS
constexpr uint8_t BEATS
Definition: MCU.hpp:144
MCU::SELECT_6
constexpr uint8_t SELECT_6
Definition: MCU.hpp:50
Channel.hpp
MCU::CYCLE
constexpr uint8_t CYCLE
Definition: MCU.hpp:117
MCU::FAST_FWD
constexpr uint8_t FAST_FWD
Definition: MCU.hpp:124
MCU::STOP
constexpr uint8_t STOP
Definition: MCU.hpp:125
MCU::CHANNEL_RIGHT
constexpr uint8_t CHANNEL_RIGHT
Definition: MCU.hpp:73
MCU::REC_RDY_7
constexpr uint8_t REC_RDY_7
Definition: MCU.hpp:24
MCU::CONTROL
constexpr uint8_t CONTROL
Definition: MCU.hpp:100
CHANNEL_5
constexpr Channel CHANNEL_5
Definition: Channel.hpp:115
CHANNEL_4
constexpr Channel CHANNEL_4
Definition: Channel.hpp:114
MCU::UNDO
constexpr uint8_t UNDO
Definition: MCU.hpp:111
MCU::V_POT_5
constexpr uint8_t V_POT_5
Definition: MCU.hpp:156
MCU::AUTOMATION_TRIM
constexpr uint8_t AUTOMATION_TRIM
Definition: MCU.hpp:105
MCU::CANCEL
constexpr uint8_t CANCEL
Definition: MCU.hpp:112
MCU::REWIND
constexpr uint8_t REWIND
Definition: MCU.hpp:123
CHANNEL_9
constexpr Channel CHANNEL_9
Definition: Channel.hpp:119
MCU::BANK_LEFT
constexpr uint8_t BANK_LEFT
Definition: MCU.hpp:70
MCU::V_POT_SELECT_2
constexpr uint8_t V_POT_SELECT_2
Definition: MCU.hpp:55
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
MCU::ZOOM
constexpr uint8_t ZOOM
Definition: MCU.hpp:134
MCU::SOLO_2
constexpr uint8_t SOLO_2
Definition: MCU.hpp:28
MCUNameFromNoteNumber.hpp
MCU::VOLUME_5
constexpr Channel VOLUME_5
Definition: MCU.hpp:171
MCU::MARKER
constexpr uint8_t MARKER
Definition: MCU.hpp:115
MCU::REC_RDY_2
constexpr uint8_t REC_RDY_2
Definition: MCU.hpp:19
MCU::V_POT_SELECT_1
constexpr uint8_t V_POT_SELECT_1
Definition: MCU.hpp:54
MCU::ASSIGN_PLUGIN
constexpr uint8_t ASSIGN_PLUGIN
Definition: MCU.hpp:66
MCU::SCRUB
constexpr uint8_t SCRUB
Definition: MCU.hpp:135
MCU::AUTOMATION_READ_OFF
constexpr uint8_t AUTOMATION_READ_OFF
Definition: MCU.hpp:103
MCU::F2
constexpr uint8_t F2
Definition: MCU.hpp:81
MCU::SOLO_6
constexpr uint8_t SOLO_6
Definition: MCU.hpp:32
MCU::F3
constexpr uint8_t F3
Definition: MCU.hpp:82
MCU::VOLUME_7
constexpr Channel VOLUME_7
Definition: MCU.hpp:173
CHANNEL_2
constexpr Channel CHANNEL_2
Definition: Channel.hpp:112
MCU::SOLO_8
constexpr uint8_t SOLO_8
Definition: MCU.hpp:34
MCU::DROP
constexpr uint8_t DROP
Definition: MCU.hpp:118
MCU::PLAY
constexpr uint8_t PLAY
Definition: MCU.hpp:126
MCU::RIGHT
constexpr uint8_t RIGHT
Definition: MCU.hpp:132
MCU::V_POT_8
constexpr uint8_t V_POT_8
Definition: MCU.hpp:159
MCU::V_POT_2
constexpr uint8_t V_POT_2
Definition: MCU.hpp:153
MCU::MUTE_8
constexpr uint8_t MUTE_8
Definition: MCU.hpp:43
MCU::GROUP
constexpr uint8_t GROUP
Definition: MCU.hpp:109
MCU::SMPTE
constexpr uint8_t SMPTE
Definition: MCU.hpp:143
MCU::SOLO_3
constexpr uint8_t SOLO_3
Definition: MCU.hpp:29
MCU::GLOBAL_VIEW
constexpr uint8_t GLOBAL_VIEW
Definition: MCU.hpp:76
MCU::REC_RDY_8
constexpr uint8_t REC_RDY_8
Definition: MCU.hpp:25
MCU::F7
constexpr uint8_t F7
Definition: MCU.hpp:86
MCU::REC_RDY_5
constexpr uint8_t REC_RDY_5
Definition: MCU.hpp:22
MCU::V_POT_6
constexpr uint8_t V_POT_6
Definition: MCU.hpp:157
MCU::VIEW_INPUTS
constexpr uint8_t VIEW_INPUTS
Definition: MCU.hpp:90
MCU::V_POT_7
constexpr uint8_t V_POT_7
Definition: MCU.hpp:158
MCU::REC_RDY_4
constexpr uint8_t REC_RDY_4
Definition: MCU.hpp:21
MCU::SELECT_8
constexpr uint8_t SELECT_8
Definition: MCU.hpp:52
MCU::VIEW_AUX
constexpr uint8_t VIEW_AUX
Definition: MCU.hpp:93
MCU::VOLUME_2
constexpr Channel VOLUME_2
Definition: MCU.hpp:168
MCU::FLIP
constexpr uint8_t FLIP
Definition: MCU.hpp:75
MCU::ASSIGN_SEND
constexpr uint8_t ASSIGN_SEND
Definition: MCU.hpp:64
CHANNEL_1
constexpr Channel CHANNEL_1
Definition: Channel.hpp:111
MCU::V_POT_4
constexpr uint8_t V_POT_4
Definition: MCU.hpp:155
MCU::V_POT_1
constexpr uint8_t V_POT_1
Definition: MCU.hpp:152
MCU::MASTER_VOLUME
constexpr Channel MASTER_VOLUME
Definition: MCU.hpp:176
MCU::ASSIGN_EQ
constexpr uint8_t ASSIGN_EQ
Definition: MCU.hpp:67
MCU::F4
constexpr uint8_t F4
Definition: MCU.hpp:83
MCU::SELECT_5
constexpr uint8_t SELECT_5
Definition: MCU.hpp:49
MCU::MUTE_4
constexpr uint8_t MUTE_4
Definition: MCU.hpp:39
MCU::SAVE
constexpr uint8_t SAVE
Definition: MCU.hpp:110
MCU::VOLUME_8
constexpr Channel VOLUME_8
Definition: MCU.hpp:174
MCU::VIEW_MIDI
constexpr uint8_t VIEW_MIDI
Definition: MCU.hpp:89
MCU::VIEW_BUSSES
constexpr uint8_t VIEW_BUSSES
Definition: MCU.hpp:94
MCU::RUDE_SOLO
constexpr uint8_t RUDE_SOLO
Definition: MCU.hpp:146
MCU::ENTER
constexpr uint8_t ENTER
Definition: MCU.hpp:113