/usr/share/mixxx/controllers/Pioneer-CDJ-850-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 | function PioneerCDJ850() {}
PioneerCDJ850.debug = false;
PioneerCDJ850.reverse_play = false;
PioneerCDJ850.last_hotcue = 0;
PioneerCDJ850.jog_sensitivity = 2.0;
PioneerCDJ850.scratch_sensitivity = 1.0;
PioneerCDJ850.init = function(id) {}
PioneerCDJ850.shutdown = function(id) {}
PioneerCDJ850.hotcue_activate = function(group,hotcue,value) {
PioneerCDJ850.last_hotcue = hotcue;
key = 'hotcue_' + hotcue + '_activate';
engine.setValue(group,key,value);
}
PioneerCDJ850.reverse_toggle = function(channel, control, value, status, group) {
if (value == 0)
return;
if (PioneerCDJ850.reverse_play)
PioneerCDJ850.reverse_play = false;
else
PioneerCDJ850.reverse_play = true;
engine.setValue(group,'reverse',PioneerCDJ850.reverse_play);
}
PioneerCDJ850.jog_wheel = function(channel, control, value, status, group) {
value = (value-0x40) / PioneerCDJ850.jog_sensitivity;
engine.setValue(group,'jog',value);
};
PioneerCDJ850.jog_scratch = function(channel, control, value, status, group) {
value = (value-0x40) / PioneerCDJ850.scratch_sensitivity;
engine.setValue(group,'jog',value);
};
PioneerCDJ850.select_track_knob = function(channel, control, value, status, group) {
if (value >= 0x01 && value <= 0x1e) {
value = value;
} else if (value >= 0x62 && value <= 0x7f) {
value = 0 - (0x7f-value+1);
} else {
return;
}
engine.setValue(group,'SelectTrackKnob',value);
};
PioneerCDJ850.hotcue_1_activate = function(channel, control, value, status, group) {
PioneerCDJ850.hotcue_activate(group,1,value);
}
PioneerCDJ850.hotcue_2_activate = function(channel, control, value, status, group) {
PioneerCDJ850.hotcue_activate(group,2,value);
}
PioneerCDJ850.hotcue_3_activate = function(channel, control, value, status, group) {
PioneerCDJ850.hotcue_activate(group,3,value);
}
PioneerCDJ850.hotcue_4_activate = function(channel, control, value, status, group) {
PioneerCDJ850.hotcue_activate(group,4,value);
}
PioneerCDJ850.hotcue_last_delete = function(channel, control, value, status, group) {
if (PioneerCDJ850.last_hotcue < 1 || PioneerCDJ850.last_hotcue > 4)
return;
key = 'hotcue_' + PioneerCDJ850.last_hotcue + '_clear';
engine.setValue(group,key,value);
PioneerCDJ850.last_hotcue = 0;
}
|