-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMPKminiMkII_JDP_Mapping.js
executable file
·401 lines (342 loc) · 6.76 KB
/
MPKminiMkII_JDP_Mapping.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
// MIDI status channels
var CCStatus = 176
var PCStatus = 192
var LEDStatus = 144
//var LEDStatus = null
var LED=
{
PAD01 : 9,
PAD02 : 10,
PAD03 : 11,
PAD04 : 12,
PAD05 : 13,
PAD06 : 14,
PAD07 : 15,
PAD08 : 16,
};
// List of CCs and PCs of the Pads:
// ===================== PROGRAM 1 ======================= //
var Joystick1 =
{
LEFT : 0,
RIGHT : 1,
UP : null,
DOWN : null,
};
var Knobs1 =
{
Knob01 : 3,
Knob02 : 4,
Knob03 : 5,
Knob04 : 6,
Knob05 : 7,
Knob06 : 8,
Knob07 : 9,
Knob08 : 10,
};
var CC1 =
{
PAD01 : 11,
PAD02 : 12,
PAD03 : 13,
PAD04 : 14,
PAD05 : 15,
PAD06 : 16,
PAD07 : 17,
PAD08 : 18,
PAD09 : 19,
PAD10 : 20,
PAD11 : 21,
PAD12 : 22,
PAD13 : 23,
PAD14 : 24,
PAD15 : 25,
PAD16 : 26
};
var PC1 =
{
PAD01 : 27,
PAD02 : 28,
PAD03 : 29,
PAD04 : 30,
PAD05 : 31,
PAD06 : 32,
PAD07 : 33,
PAD08 : 34,
PAD09 : 35,
PAD10 : 36,
PAD11 : 37,
PAD12 : 38,
PAD13 : 39,
PAD14 : 40,
PAD15 : 41,
PAD16 : 42
};
// MAPPING
// Joystick
var panningLEFT=Joystick1.LEFT;
var panningRIGHT=Joystick1.RIGHT;
var pitchbendUP=Joystick1.UP;
var pitchbendDOWN=Joystick1.DOWN;
//Knobs: Device Macros
var macro1=Knobs1.Knob01
var macro2=Knobs1.Knob02
var macro3=Knobs1.Knob03
var macro4=Knobs1.Knob04
var macro5=Knobs1.Knob05
var macro6=Knobs1.Knob06
var macro7=Knobs1.Knob07
var macro8=Knobs1.Knob08
// CC & PB A - Transport and Track
var stop = CC1.PAD01;
var play = CC1.PAD02;
var rec = CC1.PAD03;
var cursorTrackDown = CC1.PAD04;
var toggleArmCursorTrack = CC1.PAD05;
var toggleSoloCursorTrack = CC1.PAD06;
var toggleMuteCursorTrack = CC1.PAD07;
var cursorTrackUp = CC1.PAD08;
// CC & PB B - Navigation and Transpose + Mapping
var tapTempo = CC1.PAD13;
var toggleMetronome = CC1.PAD09;
//var devPageUp = CC1.PAD14;
//var devPageDown = CC1.PAD10;
var shiftPadsUp = CC1.PAD15;
var shiftPadsDown = CC1.PAD11;
var previousRC = CC1.PAD16;
var nextRC = CC1.PAD12;
// PC & PB A - GUI Navigation
var note = PC1.PAD01;
var automation = PC1.PAD02;
var devicebutton = PC1.PAD03;
var mixer = PC1.PAD04;
var inspector = PC1.PAD05;
var perspective = PC1.PAD06;
//var projectbutton = PC1.PAD07;
var editview = PC1.PAD07;
var browserVisible = PC1.PAD08;
// PC & PB B - Preset Navigation
var startbrowsing = PC1.PAD13;
var commitbrowsing = PC1.PAD09;
var previousPreset = PC1.PAD14;
var nextPreset = PC1.PAD10;
var devPageUp = PC1.PAD15;
var devPageDown = PC1.PAD11;
var previousRC2 = PC1.PAD16;
var nextRC2 = PC1.PAD12;
// ===================== PROGRAM 2 ======================= //
var Joystick2 =
{
LEFT : 43,
RIGHT : 44,
UP : 45,
DOWN : 46,
};
//var Knobs2 =
//{
//Knob01 : 3,
//Knob02 : 4,
//Knob03 : 5,
//Knob04 : 6,
//Knob05 : 7,
//Knob06 : 8,
//Knob07 : 9,
//Knob08 : 10,
//};
var CC2 =
{
PAD01 : 47,
PAD02 : 48,
PAD03 : 49,
PAD04 : 50,
PAD05 : 51,
PAD06 : 52,
PAD07 : 53,
PAD08 : 54,
PAD09 : 55,
PAD10 : 56,
PAD11 : 57,
PAD12 : 58,
PAD13 : 59,
PAD14 : 60,
PAD15 : 61,
PAD16 : 62,
};
//var PC2 =
//{
//PAD01 : 27,
//PAD02 : 28,
//PAD03 : 29,
//PAD04 : 30,
//PAD05 : 31,
//PAD06 : 32,
//PAD07 : 33,
//PAD08 : 34,
//PAD09 : 35,
//PAD10 : 36,
//PAD11 : 37,
//PAD12 : 38,
//PAD13 : 39,
//PAD14 : 40,
//PAD15 : 41,
//PAD16 : 42
//};
// MAPPING
// Joystick
var moveLEFT=Joystick2.LEFT;
var moveRIGHT=Joystick2.RIGHT;
var moveUP=Joystick2.UP;
var moveDOWN=Joystick2.DOWN;
////Knobs: Device Macros
//var macro1=Knobs1.Knob01
//var macro2=Knobs1.Knob02
//var macro3=Knobs1.Knob03
//var macro4=Knobs1.Knob04
//var macro5=Knobs1.Knob05
//var macro6=Knobs1.Knob06
//var macro7=Knobs1.Knob07
//var macro8=Knobs1.Knob08
// CC & PB A - Transport and Track
var startSlot00 = CC2.PAD05;
var startSlot01 = CC2.PAD01;
var startSlot10 = CC2.PAD06;
var startSlot11 = CC2.PAD02;
var startSlot20 = CC2.PAD07;
var startSlot21 = CC2.PAD03;
var startSlot30 = CC2.PAD08;
var startSlot31 = CC2.PAD04;
// CC & PB B - Navigation and Transpose + Mapping
var delSlot00 = CC2.PAD13;
var delSlot01 = CC2.PAD09;
var delSlot10 = CC2.PAD14;
var delSlot11 = CC2.PAD10;
var delSlot20 = CC2.PAD15;
var delSlot21 = CC2.PAD11;
var delSlot30 = CC2.PAD16;
var delSlot31 = CC2.PAD12;
//// PC & PB A - Preset Navigation
//var previousPreset = PC1.PAD05;
//var nextPreset = PC1.PAD01;
//var previousPresetCategory = PC1.PAD06;
//var nextPresetCategory = PC1.PAD02;
//var previousPresetCreator = PC1.PAD07;
//var nextPresetCreator = PC1.PAD03;
//var toggleMacro2 = PC1.PAD08;
//var nextMap2 = PC1.PAD04;
//// PC & PB B - GUI Navigation
//var note = PC1.PAD09;
//var automation = PC1.PAD10;
//var mixer = PC1.PAD11;
//var device = PC1.PAD12;
//var inspector = PC1.PAD13;
//var perspective = PC1.PAD14;
//var project = PC1.PAD15;
//var browser = PC1.PAD16;
// ===================== PROGRAM 3 ======================= //
// var Joystick2 =
// {
// LEFT : 43,
// RIGHT : 44,
// UP : 45,
// DOWN : 46,
// };
var Knobs3 =
{
Knob01 : 64, // TOP 4
Knob02 : 65,
Knob03 : 66,
Knob04 : 67,
Knob05 : 68, // BOTTOM 4
Knob06 : 69,
Knob07 : 70,
Knob08 : 71,
};
var CC3 =
{
PAD01 : 72,
PAD02 : 73,
PAD03 : 74,
PAD04 : 75,
PAD05 : 76,
PAD06 : 77,
PAD07 : 78,
PAD08 : 79,
PAD09 : 80,
PAD10 : 81,
PAD11 : 82,
PAD12 : 83,
PAD13 : 84,
PAD14 : 85,
PAD15 : 86,
PAD16 : 87,
};
//var PC2 =
//{
//PAD01 : 27,
//PAD02 : 28,
//PAD03 : 29,
//PAD04 : 30,
//PAD05 : 31,
//PAD06 : 32,
//PAD07 : 33,
//PAD08 : 34,
//PAD09 : 35,
//PAD10 : 36,
//PAD11 : 37,
//PAD12 : 38,
//PAD13 : 39,
//PAD14 : 40,
//PAD15 : 41,
//PAD16 : 42
//};
// MAPPING
// Joystick
// var moveLEFT=Joystick2.LEFT;
// var moveRIGHT=Joystick2.RIGHT;
// var moveUP=Joystick2.UP;
// var moveDOWN=Joystick2.DOWN;
//Knobs: Device Macros
var volume0=Knobs3.Knob01
var volume1=Knobs3.Knob02
var volume2=Knobs3.Knob03
var volume3=Knobs3.Knob04
var pan0=Knobs3.Knob05
var pan1=Knobs3.Knob06
var pan2=Knobs3.Knob07
var pan3=Knobs3.Knob08
// CC & PB A - Transport and Track
var stop3 = CC3.PAD01;
var play3 = CC3.PAD02;
var rec3 = CC3.PAD03;
var recAuto3 = CC3.PAD04;
var group0 = CC3.PAD05;
var group1 = CC3.PAD06;
var group2 = CC3.PAD07;
var group3 = CC3.PAD08;
// CC & PB B - Navigation and Transpose + Mapping
var mute0 = CC3.PAD09;
var mute1 = CC3.PAD10;
var mute2 = CC3.PAD11;
var mute3 = CC3.PAD12;
var solo0 = CC3.PAD13;
var solo1 = CC3.PAD14;
var solo2 = CC3.PAD15;
var solo3 = CC3.PAD16;
//// PC & PB A - Preset Navigation
//var previousPreset = PC1.PAD05;
//var nextPreset = PC1.PAD01;
//var previousPresetCategory = PC1.PAD06;
//var nextPresetCategory = PC1.PAD02;
//var previousPresetCreator = PC1.PAD07;
//var nextPresetCreator = PC1.PAD03;
//var toggleMacro2 = PC1.PAD08;
//var nextMap2 = PC1.PAD04;
//// PC & PB B - GUI Navigation
//var note = PC1.PAD09;
//var automation = PC1.PAD10;
//var mixer = PC1.PAD11;
//var device = PC1.PAD12;
//var inspector = PC1.PAD13;
//var perspective = PC1.PAD14;
//var project = PC1.PAD15;
//var browser = PC1.PAD16;