This file is indexed.

/usr/share/mixxx/controllers/Vestax-VCI-100-3DEX-scripts.js is in mixxx-data 2.0.0~dfsg-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
VestaxVCI1003DEX = new function() {}

var active_deck;	//"[ChannelN]"
var active_deck_number;  //N
var currentCue1;
var currentCue2;


// timer for loop leds start

VestaxVCI1003DEX.loopLeds = function () {

var looping = engine.getValue(active_deck,"loop_enabled");
var startposition = engine.getValue(active_deck,"loop_start_position");
var endposition = engine.getValue(active_deck,"loop_end_position");


if (startposition != -1){
midi.sendShortMsg(0x90,0x62,0x7F);/*loop in button led on*/
}
else{midi.sendShortMsg(0x80,0x62,0x7F);/*loop in button led off*/}

if (endposition != -1 && (startposition<endposition) ){
midi.sendShortMsg(0x90,0x63,0x7F);/*loop out button led on*/
}
else{midi.sendShortMsg(0x80,0x63,0x7F);/*loop out button led off*/}

if(looping){
midi.sendShortMsg(0x90,0x62,0x7F);// loop in button led on
midi.sendShortMsg(0x90,0x63,0x7F);// loop out button led on
midi.sendShortMsg(0x90,0x64,0x7F);// reloop/exit  button led on
}
else{midi.sendShortMsg(0x80,0x64,0x7F);/* reloop/exit  button led off*/}

if(looping==0 && startposition != -1 && endposition != -1)
{
midi.sendShortMsg(0x80,0x64,0x7F);// reloop/exit  button led off
}

}

engine.beginTimer(150, "VestaxVCI1003DEX.loopLeds()",false)
//timer for loop leds end


//sync led trigger start
VestaxVCI1003DEX.leftSyncLed = function (channel, control, value, status, group) {
var activebeat=engine.getValue("[Channel1]","beat_active");
if (activebeat)
{midi.sendShortMsg(0x90,0x46,0x7F);}// left sync button led on
else {midi.sendShortMsg(0x80,0x46,0x7F);}// left sync button led of
}

VestaxVCI1003DEX.rightSyncLed = function (channel, control, value, status, group) {
var activebeat=engine.getValue("[Channel2]","beat_active");
if (activebeat)
{midi.sendShortMsg(0x90,0x47,0x7F);}// left sync button led on
else {midi.sendShortMsg(0x80,0x47,0x7F);}// left sync button led of
}

engine.connectControl("[Channel1]","beat_active","VestaxVCI1003DEX.leftSyncLed");
engine.connectControl("[Channel2]","beat_active","VestaxVCI1003DEX.rightSyncLed");

//sync led end


//Mapping functions


VestaxVCI1003DEX.selectDeck1 = function (channel, control, value, status, group) {
active_deck="[Channel1]";
active_deck_number=1;
midi.sendShortMsg(0x90,0x67,0x7F);// deck- button led on
midi.sendShortMsg(0x80,0x68,0x7F);// deck+ button led off
}

VestaxVCI1003DEX.selectDeck2 = function (channel, control, value, status, group) {
active_deck="[Channel2]";
active_deck_number=2;
midi.sendShortMsg(0x80,0x67,0x7F);// deck- button led off
midi.sendShortMsg(0x90,0x68,0x7F);// deck+ button led on
}


// loop otions start
VestaxVCI1003DEX.loopin = function (channel, control, value, status, group) {if(value==0x7F)   {engine.setValue(active_deck,"loop_in",1);}}

VestaxVCI1003DEX.loopout = function (channel, control, value, status, group) {if(value==0x7F)   {engine.setValue(active_deck,"loop_out",1);}}

VestaxVCI1003DEX.reloop_exit = function (channel, control, value, status, group) {if(value==0x7F)   {engine.setValue(active_deck,"reloop_exit",1);}}

VestaxVCI1003DEX.loopMinus = function (channel, control, value, status, group) {if (value == 0x7F){engine.setValue(active_deck,"loop_halve",1);}}
VestaxVCI1003DEX.loopPlus = function (channel, control, value, status, group) {if (value == 0x7F){engine.setValue(active_deck,"loop_double",1);}}

// loop otions end

// deck specific buttons start

VestaxVCI1003DEX.jog_touch1 = function (channel, control, value, status, group) {
if(value=0x7F){engine.scratchEnable("[Channel1]", 128*3, 45, 1.0/8, (1.0/8)/32);} 
if(value==0)  {engine.scratchDisable("[Channel1]");}
}

VestaxVCI1003DEX.jog_touch2 = function (channel, control, value, status, group) {
if(value=0x7F){engine.scratchEnable("[Channel1]", 128*3, 45, 1.0/8, (1.0/8)/32);} 
if(value==0)  {engine.scratchDisable("[Channel1]");}
}

VestaxVCI1003DEX.jog_wheel1 = function (channel, control, value, status, group) {
   // 41 > 7F: CW Slow > Fast ??? 
   // 3F > 0 : CCW Slow > Fast ???
   var jogValue = value - 0x40; // -64 to +63, - = CCW, + = CW
   engine.setValue("[Channel1]","jog", jogValue/16);
}

VestaxVCI1003DEX.jog_wheel2 = function (channel, control, value, status, group) {
   // 41 > 7F: CW Slow > Fast ??? 
   // 3F > 0 : CCW Slow > Fast ???
   var jogValue = value - 0x40; // -64 to +63, - = CCW, + = CW
   engine.setValue("[Channel2]","jog", jogValue/16);
}

VestaxVCI1003DEX.jog_wheel_seek1 = function (channel, control, value, status, group) {
   // 41 > 7F: CW Slow > Fast ??? 
   // 3F > 0 : CCW Slow > Fast ???
   var jogValue = value - 0x40; // -64 to +63, - = CCW, + = CW
   engine.setValue("[Channel1]","jog", jogValue);
}

VestaxVCI1003DEX.jog_wheel_seek2 = function (channel, control, value, status, group) {
   // 41 > 7F: CW Slow > Fast ??? 
   // 3F > 0 : CCW Slow > Fast ???
   var jogValue = value - 0x40; // -64 to +63, - = CCW, + = CW
   engine.setValue("[Channel2]","jog", jogValue);
}

VestaxVCI1003DEX.play1 = function (channel, control, value, status, group) {

    var currentlyPlaying = engine.getValue("[Channel1]","play");
    if (currentlyPlaying == 1 && value == 0x7F) {    // If currently playing
        engine.setValue("[Channel1]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x32,0x7F);    // Turn off the Play LED
    }
    if (currentlyPlaying == 0 && value == 0x7F) {
        engine.setValue("[Channel1]","play",1);    // Start
        midi.sendShortMsg(0x90,0x32,0x7F);    // Turn on the Play LED
    }

    if (currentlyPlaying == 0 && value == 0x00) {    // If no track loaded
        engine.setValue("[Channel1]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x32,0x7F);    // Turn off the Play LED
    }

}

VestaxVCI1003DEX.play2 = function (channel, control, value, status, group) {

    var currentlyPlaying = engine.getValue("[Channel2]","play");
    if (currentlyPlaying == 1 && value == 0x7F) {    // If currently playing
        engine.setValue("[Channel2]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x36,0x7F);    // Turn off the Play LED
    }
    if (currentlyPlaying == 0 && value == 0x7F) {
        engine.setValue("[Channel2]","play",1);    // Start
        midi.sendShortMsg(0x90,0x36,0x7F);    // Turn on the Play LED
    }

    if (currentlyPlaying == 0 && value == 0x00) {    // If no track loaded
        engine.setValue("[Channel2]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x36,0x7F);    // Turn off the Play LED
    }

}

VestaxVCI1003DEX.pfl1 = function (channel, control, value, status, group) {


    var currentlyPfling = engine.getValue("[Channel1]","pfl");
    if (currentlyPfling == 1 && value == 0x7F) {    // If currently Pfling
        engine.setValue("[Channel1]","pfl",0);    // Stop
        midi.sendShortMsg(0x80,0x48,0x7F);    // Turn off the Pfl LED
    }
    if (currentlyPfling == 0 && value == 0x7F) {
        engine.setValue("[Channel1]","pfl",1);    // Start
        midi.sendShortMsg(0x90,0x48,0x7F);    // Turn on the Pfl LED
    }

}

VestaxVCI1003DEX.pfl2 = function (channel, control, value, status, group) {

    var currentlyPfling = engine.getValue("[Channel2]","pfl");
    if (currentlyPfling == 1 && value == 0x7F) {    // If currently Pfling
        engine.setValue("[Channel2]","pfl",0);    // Stop
        midi.sendShortMsg(0x80,0x49,0x7F);    // Turn off the Pfl LED
    }
    if (currentlyPfling == 0 && value == 0x7F) {
        engine.setValue("[Channel2]","pfl",1);    // Start
        midi.sendShortMsg(0x90,0x49,0x7F);    // Turn on the Pfl LED
    }

}

VestaxVCI1003DEX.flanger1 = function (channel, control, value, status, group) {

    var currentlyFlanging = engine.getValue("[Channel1]","flanger");
    if (currentlyFlanging == 1 && value == 0x7F) {    // If currently Flanging
        engine.setValue("[Channel1]","flanger",0);    // Stop
        midi.sendShortMsg(0x80,0x4A,0x7F);    // Turn off the flanger LED
    }
    if (currentlyFlanging == 0 && value == 0x7F) {
        engine.setValue("[Channel1]","flanger",1);    // Start
        midi.sendShortMsg(0x90,0x4A,0x7F);    // Turn on the flanger LED
    }

}
VestaxVCI1003DEX.flanger2 = function (channel, control, value, status, group) {

    var currentlyFlanging = engine.getValue("[Channel2]","flanger");
    if (currentlyFlanging == 1 && value == 0x7F) {    // If currently Flanging
        engine.setValue("[Channel2]","flanger",0);    // Stop
        midi.sendShortMsg(0x80,0x4B,0x7F);    // Turn off the flanger LED
    }
    if (currentlyFlanging == 0 && value == 0x7F) {
        engine.setValue("[Channel2]","flanger",1);    // Start
        midi.sendShortMsg(0x90,0x4B,0x7F);    // Turn on the flanger LED
    }

}


VestaxVCI1003DEX.autoloop1 = function (channel, control, value, status, group) {

if (value == 0x7F){
	engine.setValue("[Channel1]","beatloop_4_toggle",1);
	midi.sendShortMsg(0x90,0x35,0x7F);// right autoloop button led on does not work wtf
}

}

VestaxVCI1003DEX.autoloop2 = function (channel, control, value, status, group) {
if (value == 0x7F){
	engine.setValue("[Channel2]","beatloop_4_toggle",1);
	midi.sendShortMsg(0x90,0x39,0x7F);// right autoloop button led on does not work wtf
}

}

VestaxVCI1003DEX.keylock1 = function (channel, control, value, status, group) {


if (value == 0x7F)      {
			var keylocked = engine.getValue("[Channel1]","keylock");
			if(keylocked == 0) 	{
						engine.setValue("[Channel1]","keylock",1);
						midi.sendShortMsg(0x90,0x42,0x7F);// left pitchmode button led on
						}
			if(keylocked == 1) 	{
						engine.setValue("[Channel1]","keylock",0);
						midi.sendShortMsg(0x80,0x42,0x7F);// left pitchmode button led off
						}
			}

}

VestaxVCI1003DEX.keylock2 = function (channel, control, value, status, group) {


if (value == 0x7F)      {
			var keylocked = engine.getValue("[Channel2]","keylock");
			if(keylocked == 0) 	{
						engine.setValue("[Channel2]","keylock",1);
						midi.sendShortMsg(0x90,0x43,0x7F);// left pitchmode button led on
						}
			if(keylocked == 1) 	{
						engine.setValue("[Channel2]","keylock",0);
						midi.sendShortMsg(0x80,0x43,0x7F);// left pitchmode button led off
						}
			}

}

VestaxVCI1003DEX.reverse1 = function (channel, control, value, status, group) {


if (value == 0x7F)      {
			var reversed = engine.getValue("[Channel1]","reverse");
			if(reversed == 0) 	{
						engine.setValue("[Channel1]","reverse",1);
						midi.sendShortMsg(0x90,0x44,0x7F);// left reverse button led on
						}
			if(reversed == 1) 	{
						engine.setValue("[Channel1]","reverse",0);
						midi.sendShortMsg(0x80,0x44,0x7F);// left reverse button led off
						}
			}

}

VestaxVCI1003DEX.reverse2 = function (channel, control, value, status, group) {


if (value == 0x7F)      {
			var reversed = engine.getValue("[Channel2]","reverse");
			if(reversed == 0) 	{
						engine.setValue("[Channel2]","reverse",1);
						midi.sendShortMsg(0x90,0x45,0x7F);// left reverse button led on
						}
			if(reversed == 1) 	{
						engine.setValue("[Channel2]","reverse",0);
						midi.sendShortMsg(0x80,0x45,0x7F);// left reverse button led off
						}
			}

}

VestaxVCI1003DEX.cue1 = function (channel, control, value, status, group) {


if (value == 0x7F)      {
			var localCurrentCue=currentCue1;
			var cue1 = engine.getValue("[Channel1]","hotcue_1_enabled");
			var cue2 = engine.getValue("[Channel1]","hotcue_2_enabled");
			var cue3 = engine.getValue("[Channel1]","hotcue_3_enabled");
			var cue4 = engine.getValue("[Channel1]","hotcue_4_enabled");

			if(localCurrentCue==1 && cue1==1) 	{engine.setValue("[Channel1]","hotcue_1_goto",1);}
			if(localCurrentCue==2 && cue2==1) 	{engine.setValue("[Channel1]","hotcue_2_goto",1);}
			if(localCurrentCue==3 && cue3==1) 	{engine.setValue("[Channel1]","hotcue_3_goto",1);}
			if(localCurrentCue==4 && cue4==1) 	{engine.setValue("[Channel1]","hotcue_4_goto",1);}

			if (localCurrentCue+1 <= 4){currentCue1+=1;}
			else {currentCue1=1;}
			}

}

VestaxVCI1003DEX.cue2 = function (channel, control, value, status, group) {


if (value == 0x7F)      {
			var localCurrentCue=currentCue2;
			var cue1 = engine.getValue("[Channel2]","hotcue_1_enabled");
			var cue2 = engine.getValue("[Channel2]","hotcue_2_enabled");
			var cue3 = engine.getValue("[Channel2]","hotcue_3_enabled");
			var cue4 = engine.getValue("[Channel2]","hotcue_4_enabled");

			if(localCurrentCue==1 && cue1==1) 	{engine.setValue("[Channel2]","hotcue_1_goto",1);}
			if(localCurrentCue==2 && cue2==1) 	{engine.setValue("[Channel2]","hotcue_2_goto",1);}
			if(localCurrentCue==3 && cue3==1) 	{engine.setValue("[Channel2]","hotcue_3_goto",1);}
			if(localCurrentCue==4 && cue4==1) 	{engine.setValue("[Channel2]","hotcue_4_goto",1);}

			if (localCurrentCue+1 <= 4){currentCue2+=1;}
			else {currentCue2=1;}
			}


}

//sampler play buttons start

VestaxVCI1003DEX.sampler1play = function (channel, control, value, status, group) {

    var currentlyPlaying = engine.getValue("[Sampler1]","play");
    if (currentlyPlaying == 1 && value == 0x7F) {    // If currently playing
        engine.setValue("[Sampler1]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x54,0x7F);    // Turn off the Play LED
    }
    if (currentlyPlaying == 0 && value == 0x7F) {
        engine.setValue("[Sampler1]","play",1);    // Start
        midi.sendShortMsg(0x90,0x54,0x7F);    // Turn on the Play LED
    }

    if (currentlyPlaying == 0 && value == 0x00) {    // If no track loaded
        engine.setValue("[Sampler1]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x54,0x7F);    // Turn off the Play LED
    }

}

VestaxVCI1003DEX.sampler2play = function (channel, control, value, status, group) {

    var currentlyPlaying = engine.getValue("[Sampler2]","play");
    if (currentlyPlaying == 1 && value == 0x7F) {    // If currently playing
        engine.setValue("[Sampler2]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x57,0x7F);    // Turn off the Play LED
    }
    if (currentlyPlaying == 0 && value == 0x7F) {
        engine.setValue("[Sampler2]","play",1);    // Start
        midi.sendShortMsg(0x90,0x57,0x7F);    // Turn on the Play LED
    }

    if (currentlyPlaying == 0 && value == 0x00) {    // If no track loaded
        engine.setValue("[Sampler2]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x57,0x7F);    // Turn off the Play LED
    }

}

VestaxVCI1003DEX.sampler3play = function (channel, control, value, status, group) {

    var currentlyPlaying = engine.getValue("[Sampler3]","play");
    if (currentlyPlaying == 1 && value == 0x7F) {    // If currently playing
        engine.setValue("[Sampler3]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x5A,0x7F);    // Turn off the Play LED
    }
    if (currentlyPlaying == 0 && value == 0x7F) {
        engine.setValue("[Sampler3]","play",1);    // Start
        midi.sendShortMsg(0x90,0x5A,0x7F);    // Turn on the Play LED
    }

    if (currentlyPlaying == 0 && value == 0x00) {    // If no track loaded
        engine.setValue("[Sampler3]","play",0);    // Stop
        midi.sendShortMsg(0x80,0x5A,0x7F);    // Turn off the Play LED
    }


}

//sampler play buttons end

//middle position of the knobs ot an extra midi signal.
VestaxVCI1003DEX.pregainreset1 = function (channel, control, value, status, group) {engine.setValue("[Channel1]","pregain",1.0);}
VestaxVCI1003DEX.filterHighreset1 = function (channel, control, value, status, group) {engine.setValue("[Channel1]","filterHigh",1.0);}
VestaxVCI1003DEX.filterMidreset1 = function (channel, control, value, status, group) {engine.setValue("[Channel1]","filterMid",1.0);}
VestaxVCI1003DEX.filterLowreset1 = function (channel, control, value, status, group) {engine.setValue("[Channel1]","filterLow",1.0);}
VestaxVCI1003DEX.pregainreset2 = function (channel, control, value, status, group) {engine.setValue("[Channel2]","pregain",1.0);}
VestaxVCI1003DEX.filterHighreset2 = function (channel, control, value, status, group) {engine.setValue("[Channel2]","filterHigh",1.0);}
VestaxVCI1003DEX.filterMidreset2 = function (channel, control, value, status, group) {engine.setValue("[Channel2]","filterMid",1.0);}
VestaxVCI1003DEX.filterLowreset2 = function (channel, control, value, status, group) {engine.setValue("[Channel2]","filterLow",1.0);}

// deck specific buttons end

VestaxVCI1003DEX.init = function (id) {
active_deck="[Channel1]";
active_deck_number=1
midi.sendShortMsg(0x90,0x67,0x7F);// deck- button led on
midi.sendShortMsg(0x80,0x68,0x7F);// deck+ button led off

// TODO SOFTTAKEOVER does not work(mixxbug) , AUTOLOOP LEDs, LOOP BAHAVIOUR with keylock on(mixxxbug) , cue shuffle mode,loopmove mode?
engine.softTakeover("[Channel1]", "rate", true); // wtf does not work

currentCue1=1;
currentCue2=1;

midi.sendShortMsg(0x80,0x32,0x7F);// left play button led off
midi.sendShortMsg(0x80,0x36,0x7F);// right play button led off


engine.setValue("[Channel1]","pfl",0);
engine.setValue("[Channel2]","pfl",0);
midi.sendShortMsg(0x80,0x48,0x7F);// left pfl button led off
midi.sendShortMsg(0x80,0x49,0x7F);// left pfl button led off

engine.setValue("[Channel1]","flanger",0);
engine.setValue("[Channel1]","flanger",0);
midi.sendShortMsg(0x80,0x4A,0x7F);// left send(fx) button led off
midi.sendShortMsg(0x80,0x4B,0x7F);// left send(fx) button led off

engine.setValue("[Channel1]","keylock",0);
engine.setValue("[Channel2]","keylock",0);
midi.sendShortMsg(0x80,0x42,0x7F);// left pitch mode button led off
midi.sendShortMsg(0x80,0x43,0x7F);// right pitch mode button led off

engine.setValue("[Channel1]","quantize",1);
engine.setValue("[Channel2]","quantize",1);


engine.setValue("[Channel1]","reverse",0);
engine.setValue("[Channel2]","reverse",0);
midi.sendShortMsg(0x80,0x44,0x7F);// left reverse button led off
midi.sendShortMsg(0x80,0x45,0x7F);// right reverse mode button led off

midi.sendShortMsg(0x80,0x62,0x7F);// loop in button led off
midi.sendShortMsg(0x80,0x63,0x7F);// loop out button led off
midi.sendShortMsg(0x80,0x64,0x7F);// reloop/exit  button led off

midi.sendShortMsg(0x80,0x46,0x7F);// left sync button led off
midi.sendShortMsg(0x80,0x47,0x7F);// rigth sync button led off

/*

!! = light does not work
!!CC = problems with controlchage or light does not work

midi.sendShortMsg(0x80,0x32,0x7F);// left play button led off
midi.sendShortMsg(0x90,0x32,0x7F);// left play button led on
midi.sendShortMsg(0x80,0x36,0x7F);// right play button led off
midi.sendShortMsg(0x90,0x36,0x7F);// right play button led on
midi.sendShortMsg(0x80,0x65,0x7F);// loop- button led off
midi.sendShortMsg(0x90,0x65,0x7F);// loop- button led on
midi.sendShortMsg(0x80,0x66,0x7F);// loop+ button led off
midi.sendShortMsg(0x90,0x66,0x7F);// loop+ button led on

midi.sendShortMsg(0x80,0x34,0x7F);// left brake button led off
midi.sendShortMsg(0x90,0x34,0x7F);// left brake button led on
midi.sendShortMsg(0x80,0x38,0x7F);// right brake button led off
midi.sendShortMsg(0x90,0x38,0x7F);// right brake button led on
midi.sendShortMsg(0x80,0x33,0x7F);// left cue button led off !!
midi.sendShortMsg(0x90,0x33,0x7F);// left cue button led on  !!

midi.sendShortMsg(0x80,0x37,0x7F);// right cue button led off !!
midi.sendShortMsg(0x90,0x37,0x7F);// right cue button led on  !!
midi.sendShortMsg(0x80,0x35,0x7F);// left autoloop button led off!!
midi.sendShortMsg(0x90,0x35,0x7F);// left autoloop button led on!!
midi.sendShortMsg(0x80,0x39,0x7F);// right autoloop button led off!!
midi.sendShortMsg(0x90,0x39,0x7F);// right autoloop button led on!!

midi.sendShortMsg(0x80,0x42,0x7F);// left pitch mode button led off
midi.sendShortMsg(0x90,0x42,0x7F);// left pitch mode button led on
midi.sendShortMsg(0x80,0x43,0x7F);// right pitch mode button led off
midi.sendShortMsg(0x90,0x43,0x7F);// right pitch mode button led on
midi.sendShortMsg(0x80,0x44,0x7F);// left reverse button led off
midi.sendShortMsg(0x90,0x44,0x7F);// left reverse button led on

midi.sendShortMsg(0x80,0x45,0x7F);// right reverse mode button led off
midi.sendShortMsg(0x90,0x45,0x7F);// right reverse mode button led on
midi.sendShortMsg(0x80,0x48,0x7F);// left pfl button led off
midi.sendShortMsg(0x90,0x48,0x7F);// left pfl button led on
midi.sendShortMsg(0x80,0x49,0x7F);// right pfl button led off
midi.sendShortMsg(0x90,0x49,0x7F);// right pfl button led on


midi.sendShortMsg(0x80,0x4A,0x7F);// left send(fx) button led off !!cc
midi.sendShortMsg(0x90,0x4A,0x7F);// left send(fx) button led on!!cc
midi.sendShortMsg(0x80,0x4B,0x7F);// right send(fx) button led off!!cc
midi.sendShortMsg(0x90,0x4B,0x7F);// right send(fx) button led on!!cc
midi.sendShortMsg(0x80,0x4C,0x7F);// Send selectio + pad 4 button led off!!cc
midi.sendShortMsg(0x90,0x4C,0x7F);// send selection + pad 4 button led on!!cc

midi.sendShortMsg(0x80,0x4D,0x7F);// selection up button led off !!cc
midi.sendShortMsg(0x90,0x4D,0x7F);// selection up button led on!!cc
midi.sendShortMsg(0x80,0x4E,0x7F);// selection up button led off !!cc
midi.sendShortMsg(0x90,0x4E,0x7F);// selection up button led on!!cc
midi.sendShortMsg(0x80,0x4F,0x7F);// selection up button led off !!cc
midi.sendShortMsg(0x90,0x4F,0x7F);// selection up button led on!!cc

midi.sendShortMsg(0x80,0x50,0x7F);// selection down button led off !!cc
midi.sendShortMsg(0x90,0x50,0x7F);// selection down button led on!!cc
midi.sendShortMsg(0x80,0x51,0x7F);// selection down button led off !!cc
midi.sendShortMsg(0x90,0x51,0x7F);// selection down button led on!!cc
midi.sendShortMsg(0x80,0x52,0x7F);// selection down button led off !!cc
midi.sendShortMsg(0x90,0x52,0x7F);// selection down button led on!!cc


// channel A
midi.sendShortMsg(0x80,0x53,0x7F);// pad1  button led off 
midi.sendShortMsg(0x90,0x53,0x7F);// pad1  button led on
midi.sendShortMsg(0x80,0x54,0x7F);// pad1  button led off 
midi.sendShortMsg(0x90,0x54,0x7F);// pad1  button led on
midi.sendShortMsg(0x80,0x55,0x7F);// pad1  button led off 
midi.sendShortMsg(0x90,0x55,0x7F);// pad1  button led on

//channel B
midi.sendShortMsg(0x80,0x56,0x7F);// pad2  button led off 
midi.sendShortMsg(0x90,0x56,0x7F);// pad2  button led on
midi.sendShortMsg(0x80,0x57,0x7F);// pad2  button led off 
midi.sendShortMsg(0x90,0x57,0x7F);// pad2  button led on
midi.sendShortMsg(0x80,0x58,0x7F);// pad2  button led off 
midi.sendShortMsg(0x90,0x58,0x7F);// pad2  button led on

// sampler
midi.sendShortMsg(0x80,0x59,0x7F);// pad3  button led off 
midi.sendShortMsg(0x90,0x59,0x7F);// pad3  button led on
midi.sendShortMsg(0x80,0x5A,0x7F);// pad3  button led off 
midi.sendShortMsg(0x90,0x5A,0x7F);// pad3  button led on
midi.sendShortMsg(0x80,0x5B,0x7F);// pad3  button led off 
midi.sendShortMsg(0x90,0x5B,0x7F);// pad3  button led on

midi.sendShortMsg(0x80,0x5C,0x7F);// up button led off !!
midi.sendShortMsg(0x90,0x5C,0x7F);// up button led on!!
midi.sendShortMsg(0x80,0x5D,0x7F);// down button led off!!
midi.sendShortMsg(0x90,0x5D,0x7F);// down button led on!!
midi.sendShortMsg(0x80,0x5E,0x7F);// view button led off!!
midi.sendShortMsg(0x90,0x5E,0x7F);// view button led on!!

midi.sendShortMsg(0x80,0x5F,0x7F);// view button led off
midi.sendShortMsg(0x90,0x5F,0x7F);// view button led on
midi.sendShortMsg(0x80,0x60,0x7F);// left button led off!!
midi.sendShortMsg(0x90,0x60,0x7F);// left button led on!!
midi.sendShortMsg(0x80,0x61,0x7F);// right button led off!!
midi.sendShortMsg(0x90,0x61,0x7F);// right button led on!!

midi.sendShortMsg(0x80,0x62,0x7F);// loop in button led off
midi.sendShortMsg(0x90,0x62,0x7F);// loop in button led on
midi.sendShortMsg(0x80,0x63,0x7F);// loop out button led off
midi.sendShortMsg(0x90,0x63,0x7F);// loop out button led on
midi.sendShortMsg(0x80,0x64,0x7F);// reloop/exit  button led off
midi.sendShortMsg(0x90,0x64,0x7F);// reloop/exit  button led on

midi.sendShortMsg(0x80,0x65,0x7F);// loop- button led off
midi.sendShortMsg(0x90,0x65,0x7F);// loop- button led on
midi.sendShortMsg(0x80,0x66,0x7F);// loop+ button led off
midi.sendShortMsg(0x90,0x66,0x7F);// loop+ button led on
midi.sendShortMsg(0x80,0x67,0x7F);// deck- button led off
midi.sendShortMsg(0x90,0x67,0x7F);// deck- button led on

midi.sendShortMsg(0x80,0x68,0x7F);// deck+ button led off
midi.sendShortMsg(0x90,0x68,0x7F);// deck+ button led on
midi.sendShortMsg(0x80,0x46,0x7F);// left sync button led off
midi.sendShortMsg(0x90,0x46,0x7F);// left sync button led on
midi.sendShortMsg(0x80,0x47,0x7F);// rigth sync button led off
midi.sendShortMsg(0x90,0x47,0x7F);// right sync button led on
*/
}