This file is indexed.

/usr/share/mixxx/controllers/DJ-Tech-Mixer-One-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
function MIXER1() {}

MIXER1.init = function init(id, debug) { // called when the device is opened & set up
	//connect VUmeters
	engine.connectControl("[Master]", "VuMeterL", "MIXER1.volumeLEDs");
	engine.connectControl("[Master]", "VuMeterR", "MIXER1.volumeLEDs");
	engine.connectControl("[Channel1]", "VuMeter", "MIXER1.volumeLEDs");
	engine.connectControl("[Channel2]", "VuMeter", "MIXER1.volumeLEDs");
	engine.connectControl("[Channel3]", "VuMeter", "MIXER1.volumeLEDs");
	engine.connectControl("[Channel4]", "VuMeter", "MIXER1.volumeLEDs");
	};

MIXER1.shutdown = function shutdown() {
	//disconnect VUmeters
	engine.connectControl("[Master]", "VuMeterL", "MIXER1.volumeLEDs", true);
	engine.connectControl("[Master]", "VuMeterR", "MIXER1.volumeLEDs", true);
	engine.connectControl("[Channel1]", "VuMeter", "MIXER1.volumeLEDs", true);
	engine.connectControl("[Channel2]", "VuMeter", "MIXER1.volumeLEDs", true);
	engine.connectControl("[Channel3]", "VuMeter", "MIXER1.volumeLEDs", true);
	engine.connectControl("[Channel4]", "VuMeter", "MIXER1.volumeLEDs", true);
	};

MIXER1.volumeLEDs = function volumeLEDs(value, group, control){
		
	value=(value*127);
	if (group=="[Master]" && control=="VuMeterL"){ch=0xB5;midino=0x1f;midi.sendShortMsg(ch, midino, value);ch=0xB7;midino=0x1f;midi.sendShortMsg(ch, midino, value);}
	if (group=="[Master]" && control=="VuMeterR"){ch=0xB5;midino=0x20;midi.sendShortMsg(ch, midino, value);ch=0xB7;midino=0x20;midi.sendShortMsg(ch, midino, value);}
	if (group=="[Channel1]" && control=="VuMeter"){ch=0xB5;midino=0x22;midi.sendShortMsg(ch, midino, value);}
	if (group=="[Channel2]" && control=="VuMeter"){ch=0xB6;midino=0x23;midi.sendShortMsg(ch, midino, value);}
	if (group=="[Channel3]" && control=="VuMeter"){ch=0xB7;midino=0x22;midi.sendShortMsg(ch, midino, value);}
	if (group=="[Channel4]" && control=="VuMeter"){ch=0xB8;midino=0x23;midi.sendShortMsg(ch, midino, value);}
	};

MIXER1.clearVolumeLEDs = function clearVolumeLEDs(){
	//send zeros to all volumeLED channels
	
	value=0;
	ch=0xB5;midino=0x1f;midi.sendShortMsg(ch, midino, value);
	ch=0xB7;midino=0x1f;midi.sendShortMsg(ch, midino, value);
	ch=0xB5;midino=0x20;midi.sendShortMsg(ch, midino, value);
	ch=0xB7;midino=0x20;midi.sendShortMsg(ch, midino, value);
	ch=0xB5;midino=0x22;midi.sendShortMsg(ch, midino, value);
	ch=0xB6;midino=0x23;midi.sendShortMsg(ch, midino, value);
	ch=0xB7;midino=0x22;midi.sendShortMsg(ch, midino, value);
	ch=0xB8;midino=0x23;midi.sendShortMsg(ch, midino, value);
	};

MIXER1.mute = function mute(channel, control, value){
	//mute master
	if (value==127){
		//button was pressed
		if (engine.getValue("[Master]", "volume")>0){MIXER1.mutestoredvol=engine.getValue("[Master]", "volume");}
		engine.setValue("[Master]", "volume", 0);
		midi.sendShortMsg(0x97, 0x05, 127);//light Inverse LED
		midi.sendShortMsg(0x95, 0x05, 127);//light Inverse LED
		}else{
		//button was released
		engine.setValue("[Master]", "volume", MIXER1.mutestoredvol);		
		midi.sendShortMsg(0x97, 0x05, 0);//turn off Inverse LED
		midi.sendShortMsg(0x95, 0x05, 0);//turn off Inverse LED
		}
	};

MIXER1.xfaderCurve = function xfaderCurve(channel, control, value){
	//set xfader curve
	script.crossfaderCurve(value, 0, 127);
	print("########XFADE###########"+value);
	};