summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Williams <owilliams@mixxx.org>2020-07-26 16:00:48 -0400
committerOwen Williams <owilliams@mixxx.org>2020-07-26 16:00:48 -0400
commitd99d55a9cac30190fc42afe793813f429d20fc93 (patch)
tree450d134e5794b01dc3e241b92607f473f22ea59d
parentd1edf4f1e2cf36327c3e3be1f39de36a4f5ca465 (diff)
controller scripts: remove trailing whitespace
-rw-r--r--res/controllers/Akai-LPD8-RK-scripts.js88
-rw-r--r--res/controllers/American-Audio-RADIUS-2000-scripts.js4
-rw-r--r--res/controllers/American-Audio-VMS4-scripts.js30
-rw-r--r--res/controllers/Behringer-BCD3000-Advanced-scripts.js20
-rw-r--r--res/controllers/Behringer-BCD3000-scripts.js12
-rw-r--r--res/controllers/Behringer-CMDStudio4a-scripts.js548
-rw-r--r--res/controllers/DJ-Tech-CDJ-101-scripts.js20
-rw-r--r--res/controllers/DJ-Tech-Kontrol-One-scripts.js134
-rw-r--r--res/controllers/DJ-Tech-Mixer-One-scripts.js6
-rw-r--r--res/controllers/DJ-Tech-i-Mix-Reload-scripts.js80
-rw-r--r--res/controllers/Denon-MC3000-scripts.js68
-rw-r--r--res/controllers/Denon-MC4000-scripts.js26
-rw-r--r--res/controllers/EKS-Otus.js50
-rw-r--r--res/controllers/Electrix-Tweaker-scripts.js54
-rw-r--r--res/controllers/Gemini-CDMP-7000-scripts.js136
-rw-r--r--res/controllers/Gemini-FirstMix-scripts.js530
-rw-r--r--res/controllers/Hercules DJ Control MP3 e2-scripts.js24
-rw-r--r--res/controllers/Hercules-DJ-Console-4-Mx-scripts.js3586
-rw-r--r--res/controllers/Hercules-DJ-Console-Mk1-hid-scripts.js48
-rw-r--r--res/controllers/Hercules-DJ-Console-Mk2-hid-scripts.js44
-rw-r--r--res/controllers/Hercules-DJ-Console-Mk2-scripts.js122
-rw-r--r--res/controllers/Hercules-DJ-Console-RMX-2-scripts.js16
-rw-r--r--res/controllers/Hercules-DJ-Console-RMX-hid-scripts.js2
-rw-r--r--res/controllers/Hercules-DJ-Console-RMX-scripts.js2
-rw-r--r--res/controllers/Hercules-DJ-Control-AIR-scripts.js2
-rw-r--r--res/controllers/Hercules-DJ-Control-Instinct-scripts.js44
-rw-r--r--res/controllers/Hercules-DJ-Control-MP3-hid-scripts.js58
-rw-r--r--res/controllers/Hercules-DJ-Control-MP3-scripts.js38
-rw-r--r--res/controllers/Hercules-P32-scripts.js4
-rw-r--r--res/controllers/Hercules-mp3e2-compat.js2
-rw-r--r--res/controllers/Ion-Discover-DJ-scripts.js14
-rw-r--r--res/controllers/KANE_QuNeo_scripts.js122
-rw-r--r--res/controllers/Kontrol-Dj-KDJ500-scripts.js8
-rw-r--r--res/controllers/Korg-KAOSS-DJ-scripts.js14
-rw-r--r--res/controllers/Korg-nanoKONTROL-2-scripts.js154
-rw-r--r--res/controllers/Korg-nanoPAD2-scripts.js18
-rw-r--r--res/controllers/Midi_for_light-scripts.js36
-rw-r--r--res/controllers/MixVibes-U-Mix-Control-Pro-2-scripts.js2
-rw-r--r--res/controllers/Mixman DM2 (Linux).js2
-rw-r--r--res/controllers/Nintendo-Wiimote.js56
-rw-r--r--res/controllers/Novation-Dicer-scripts.js62
-rw-r--r--res/controllers/Novation-Launchpad-Mini-scripts.js10
-rw-r--r--res/controllers/Numark-DJ2Go-scripts.js1382
-rw-r--r--res/controllers/Numark-Mixtrack-3-scripts.js68
-rw-r--r--res/controllers/Numark-NS7-scripts.js10
-rw-r--r--res/controllers/Numark-Omni-Control-scripts.js46
-rw-r--r--res/controllers/Numark-Total-Control-scripts.js46
-rw-r--r--res/controllers/Numark-V7-scripts.js30
-rw-r--r--res/controllers/Pioneer-CDJ-2000-scripts.js2
-rw-r--r--res/controllers/Pioneer-CDJ-350-scripts.js14
-rw-r--r--res/controllers/Pioneer-CDJ-850-scripts.js8
-rw-r--r--res/controllers/Reloop-Beatpad-scripts.js5496
-rw-r--r--res/controllers/Reloop-Digital-Jockey2-Controller-scripts.js1870
-rw-r--r--res/controllers/Sony-SixxAxis.js14
-rw-r--r--res/controllers/Stanton-SCS1d-scripts.js248
-rw-r--r--res/controllers/Stanton-SCS1m-scripts.js68
-rw-r--r--res/controllers/Stanton-SCS3d-scripts.js206
-rw-r--r--res/controllers/Vestax-Typhoon-scripts.js66
-rw-r--r--res/controllers/Vestax-VCI-100-3DEX-scripts.js30
-rw-r--r--res/controllers/Vestax-VCI-100-hile.js44
-rw-r--r--res/controllers/Vestax-VCI-100-scripts.js10
-rw-r--r--res/controllers/Wireless-DJ-scripts.js66
-rw-r--r--res/controllers/common-hid-devices.js2
63 files changed, 8011 insertions, 8011 deletions
diff --git a/res/controllers/Akai-LPD8-RK-scripts.js b/res/controllers/Akai-LPD8-RK-scripts.js
index 35950bb273..f93d4b010a 100644
--- a/res/controllers/Akai-LPD8-RK-scripts.js
+++ b/res/controllers/Akai-LPD8-RK-scripts.js
@@ -251,7 +251,7 @@ LPD8RK.init = function (id, debug) { // called when the device is opened & set u
engine.softTakeover("[Sampler1]","rate",true);
engine.softTakeover("[Sampler2]","volume",true);
engine.softTakeover("[Sampler2]","rate",true);
-
+
//set LED timer
LPD8RK.ledTimer = engine.beginTimer(LPD8RK.LEDinterval, "LPD8RK.setLeds()");
};
@@ -282,11 +282,11 @@ LPD8RK.setLeds = function () {
var state = engine.getValue(LPD8RK.hotcues[id][LPD8RK.hotcueBank][0], "hotcue_"+LPD8RK.hotcues[id][LPD8RK.hotcueBank][1]+"_enabled");
//if (LPD8RK.debug){print("midi.sendShortMsg("+status+", "+ctrl+", "+state+")")};
-
+
LPD8RK.lightLED(status, ctrl, state);
};
};
-
+
//loops
for (var id in LPD8RK.loops){
//iterate through hotcues, set hotcue leds
@@ -295,15 +295,15 @@ LPD8RK.setLeds = function () {
var state = engine.getValue(LPD8RK.loops[id][0], "beatloop_"+LPD8RK.loops[id][1]+"_enabled");
//if (LPD8RK.debug){print("midi.sendShortMsg("+status+", "+ctrl+", "+state+")")};
-
+
LPD8RK.lightLED(status, ctrl, state);
};
-
+
//reloop buttons
- LPD8RK.lightLED(0xb0, 0x01, engine.getValue("[Channel1]", "loop_enabled"));
- LPD8RK.lightLED(0xb1, 0x01, engine.getValue("[Channel2]", "loop_enabled"));
- LPD8RK.lightLED(0xb2, 0x01, engine.getValue("[Sampler1]", "loop_enabled"));
- LPD8RK.lightLED(0xb3, 0x01, engine.getValue("[Sampler2]", "loop_enabled"));
+ LPD8RK.lightLED(0xb0, 0x01, engine.getValue("[Channel1]", "loop_enabled"));
+ LPD8RK.lightLED(0xb1, 0x01, engine.getValue("[Channel2]", "loop_enabled"));
+ LPD8RK.lightLED(0xb2, 0x01, engine.getValue("[Sampler1]", "loop_enabled"));
+ LPD8RK.lightLED(0xb3, 0x01, engine.getValue("[Sampler2]", "loop_enabled"));
};
LPD8RK.lightLED = function (status, ctrl, state){
@@ -316,8 +316,8 @@ LPD8RK.lightLED = function (status, ctrl, state){
if (state > 0 || state === true){state=1;}//make sure state is valid
midi.sendShortMsg(status, ctrl, state);
}
- };
-
+ };
+
LPD8RK.clear = function (){//enables hotcue clearing
if (LPD8RK.debug){print("###hotcueclear##############")};
LPD8RK.hotcueClear=true;
@@ -371,7 +371,7 @@ LPD8RK.loopButton = function (channel, control, value, status, group) {
LPD8RK.reloopButton = function (channel, control, value, status, group) {
if (LPD8RK.debug){print(LPD8RK.looplen+"len");}
if (LPD8RK.debug){print(LPD8RK.looptype+"type");}
-
+
if (value>0){//button was pressed
engine.stopTimer(LPD8RK.reloopTimer);
LPD8RK.loopbuttonDown=true;
@@ -405,7 +405,7 @@ LPD8RK.resetOldBank = function () {
LPD8RK.hotcueBankDial = function (channel, control, value, status, group) {
//sets which hotcue bank to display (separate this out on dedicated controller)
-
+
//pause LED resets, so bank indicator lights will be visible
engine.stopTimer(LPD8RK.ledTimer);
@@ -437,31 +437,31 @@ LPD8RK.hotcueBankDial = function (channel, control, value, status, group) {
LPD8RK.oldHotcueBank=LPD8RK.hotcueBank;
//set timer to clear old bank number after 500 msec, so bank indicator light will light up
engine.stopTimer(LPD8RK.oldbanktimer);
- LPD8RK.oldbanktimer = engine.beginTimer(500, "LPD8RK.resetOldBank()", true);
+ LPD8RK.oldbanktimer = engine.beginTimer(500, "LPD8RK.resetOldBank()", true);
//set timer to restart LED updates in 500 msec
engine.stopTimer(LPD8RK.LEDPauseTimer);
- LPD8RK.LEDPauseTimer = engine.beginTimer(LPD8RK.LEDinterval, "LPD8RK.resetLEDTimer()", true);
+ LPD8RK.LEDPauseTimer = engine.beginTimer(LPD8RK.LEDinterval, "LPD8RK.resetLEDTimer()", true);
};
LPD8RK.looplenDial = function (channel, control, value, status, group) {
//activates variable length loop depending on dial position
LPD8RK.looplen=value;
- if (LPD8RK.loopbuttonDown !== true){return false;}//exit if no loop button down
- else if (LPD8RK.looplen<=0x12){engine.setValue(group, LPD8RK.looptype+"_0.0625_activate", .0625);return true;} else
- if (LPD8RK.looplen<=0x25){engine.setValue(group, LPD8RK.looptype+"_0.125_activate", .125);return true;} else
- if (LPD8RK.looplen<=0x37){engine.setValue(group, LPD8RK.looptype+"_0.25_activate", .25);return true;} else
- if (LPD8RK.looplen<=0x49){engine.setValue(group, LPD8RK.looptype+"_0.5_activate", .5);return true;} else
- if (LPD8RK.looplen<=0x5b){engine.setValue(group, LPD8RK.looptype+"_1_activate", 1);return true;} else
- if (LPD8RK.looplen<=0x6d){engine.setValue(group, LPD8RK.looptype+"_2_activate", 2);return true;} else
- if (LPD8RK.looplen<=0x70){engine.setValue(group, LPD8RK.looptype+"_4_activate", 4);return true;} else
- if (LPD8RK.looplen<=0x7f){engine.setValue(group, LPD8RK.looptype+"_8_activate", 8);return true;};
+ if (LPD8RK.loopbuttonDown !== true){return false;}//exit if no loop button down
+ else if (LPD8RK.looplen<=0x12){engine.setValue(group, LPD8RK.looptype+"_0.0625_activate", .0625);return true;} else
+ if (LPD8RK.looplen<=0x25){engine.setValue(group, LPD8RK.looptype+"_0.125_activate", .125);return true;} else
+ if (LPD8RK.looplen<=0x37){engine.setValue(group, LPD8RK.looptype+"_0.25_activate", .25);return true;} else
+ if (LPD8RK.looplen<=0x49){engine.setValue(group, LPD8RK.looptype+"_0.5_activate", .5);return true;} else
+ if (LPD8RK.looplen<=0x5b){engine.setValue(group, LPD8RK.looptype+"_1_activate", 1);return true;} else
+ if (LPD8RK.looplen<=0x6d){engine.setValue(group, LPD8RK.looptype+"_2_activate", 2);return true;} else
+ if (LPD8RK.looplen<=0x70){engine.setValue(group, LPD8RK.looptype+"_4_activate", 4);return true;} else
+ if (LPD8RK.looplen<=0x7f){engine.setValue(group, LPD8RK.looptype+"_8_activate", 8);return true;};
};
LPD8RK.loopminus = function (channel, control, value, status, group) {
//shrinks loop or moves loop back
- if (LPD8RK.loopbuttonDown !== true){engine.setValue(group, "loop_halve", 1);engine.setValue(group, "loop_halve", 0); return false;}//shrink loop if no loop button down
+ if (LPD8RK.loopbuttonDown !== true){engine.setValue(group, "loop_halve", 1);engine.setValue(group, "loop_halve", 0); return false;}//shrink loop if no loop button down
else if (engine.getValue(group, "loop_start_position")>=0 && engine.getValue(group, "loop_end_position")>=0 ){
//move loop
var interval = LPD8RK.loopmove*engine.getValue(group, "track_samples")/engine.getValue(group, "duration");
@@ -475,7 +475,7 @@ LPD8RK.loopminus = function (channel, control, value, status, group) {
LPD8RK.loopplus = function (channel, control, value, status, group) {
//grows loop or moves loop forward
- if (LPD8RK.loopbuttonDown !== true){engine.setValue(group, "loop_double", 1); engine.setValue(group, "loop_double", 0); return false;}//shrink loop if no loop button down
+ if (LPD8RK.loopbuttonDown !== true){engine.setValue(group, "loop_double", 1); engine.setValue(group, "loop_double", 0); return false;}//shrink loop if no loop button down
else if (engine.getValue(group, "loop_start_position")>=0 && engine.getValue(group, "loop_end_position")>=0 ){
//move loop
var interval = LPD8RK.loopmove*engine.getValue(group, "track_samples")/engine.getValue(group, "duration");
@@ -494,26 +494,26 @@ LPD8RK.beatjump = function (channel, control, value, status, group) {
var backseconds = numbeats*(1/(engine.getValue(group, "bpm")/60));
var backsamples = backseconds*engine.getValue(group, "track_samples")/engine.getValue(group, "duration");
var newpos = curpos-(backsamples+engine.getValue("Master", "latency"));
-
+
if (LPD8RK.debug){print("backseconds: "+backseconds);}
if (LPD8RK.debug){print("backsamples: "+backsamples);}
if (LPD8RK.debug){print("curpos: "+curpos);}
if (LPD8RK.debug){print("newpos: "+newpos);}
if (LPD8RK.debug){print("numbeats: "+numbeats);}
-
+
engine.setValue(group, "playposition", newpos/engine.getValue(group, "track_samples"));
};
LPD8RK.beatjumpDial = function (channel, control, value, status, group) {
//activates variable length loop depending on dial position
if(value>=0 && value <=127){
- if (value<=1){LPD8RK.beatjumpstep=.25; return true;} else
- if (value<=31){LPD8RK.beatjumpstep=.5; return true;} else
- if (value<=63){LPD8RK.beatjumpstep=1; return true;} else
- if (value<=94){LPD8RK.beatjumpstep=2; return true;} else
- if (value<=125){LPD8RK.beatjumpstep=4; return true;} else
+ if (value<=1){LPD8RK.beatjumpstep=.25; return true;} else
+ if (value<=31){LPD8RK.beatjumpstep=.5; return true;} else
+ if (value<=63){LPD8RK.beatjumpstep=1; return true;} else
+ if (value<=94){LPD8RK.beatjumpstep=2; return true;} else
+ if (value<=125){LPD8RK.beatjumpstep=4; return true;} else
if (value<=127){LPD8RK.beatjumpstep=8; return true;};
- };
+ };
};
LPD8RK.mute = function (group) {
@@ -528,19 +528,19 @@ LPD8RK.mute = function (group) {
LPD8RK.vol[group]=curvol;
};
engine.softTakeover(group,"volume",true);
-
+
if (LPD8RK.debug){print("MUTE");}
};
LPD8RK.progChng = function (channel, control, value, status, group) {
if (LPD8RK.debug){print("###PROG CHANGE###");}
//workaround because prog chng buttons don't seem to like to work unless they're linked to scripts
- if (control==0x07){LPD8RK.toggleplay(group, engine.getValue(group, "play")); return true;} else
- if (control==0x03){engine.setValue(group, "cue_default", true); engine.setValue(group, "cue_default", false); return true;} else
- if (control==0x06){engine.setValue(group, "beatsync", true); engine.setValue(group, "beatsync", false); return true;} else
- if (control==0x02){LPD8RK.togglepfl(group, engine.getValue(group, "pfl")); return true;} else
- if (control==0x05){LPD8RK.togglereverse(group, engine.getValue(group, "reverse")); return true;} else
- if (control==0x04){LPD8RK.toggleback(group, engine.getValue(group, "back")); return true;} else
+ if (control==0x07){LPD8RK.toggleplay(group, engine.getValue(group, "play")); return true;} else
+ if (control==0x03){engine.setValue(group, "cue_default", true); engine.setValue(group, "cue_default", false); return true;} else
+ if (control==0x06){engine.setValue(group, "beatsync", true); engine.setValue(group, "beatsync", false); return true;} else
+ if (control==0x02){LPD8RK.togglepfl(group, engine.getValue(group, "pfl")); return true;} else
+ if (control==0x05){LPD8RK.togglereverse(group, engine.getValue(group, "reverse")); return true;} else
+ if (control==0x04){LPD8RK.toggleback(group, engine.getValue(group, "back")); return true;} else
if (control==0x00){LPD8RK.togglefwd(group, engine.getValue(group, "fwd")); return true;}
if (control==0x01){LPD8RK.mute(group); return true;}
};
@@ -554,15 +554,15 @@ LPD8RK.togglepfl = function (group, state) {
};
LPD8RK.togglereverse = function (group, state) {
- if (state==true){engine.setValue(group, "reverse", false);} else {engine.setValue(group, "reverse", true);};
+ if (state==true){engine.setValue(group, "reverse", false);} else {engine.setValue(group, "reverse", true);};
};
LPD8RK.toggleback = function (group, state) {
- if (state==true){engine.setValue(group, "back", false);} else {engine.setValue(group, "back", true);};
+ if (state==true){engine.setValue(group, "back", false);} else {engine.setValue(group, "back", true);};
};
LPD8RK.togglefwd = function (group, state) {
- if (state==true){engine.setValue(group, "fwd", false);} else {engine.setValue(group, "fwd", true);};
+ if (state==true){engine.setValue(group, "fwd", false);} else {engine.setValue(group, "fwd", true);};
};
LPD8RK.softXfade = function (channel, control, value, status, group) {
diff --git a/res/controllers/American-Audio-RADIUS-2000-scripts.js b/res/controllers/American-Audio-RADIUS-2000-scripts.js
index 4314b301da..9faf58f705 100644
--- a/res/controllers/American-Audio-RADIUS-2000-scripts.js
+++ b/res/controllers/American-Audio-RADIUS-2000-scripts.js
@@ -22,7 +22,7 @@ RADIUS2000.currentDeck2 = function (group) {
return "[Channel1]";
else if (group == "[Channel2]")
return "[Channel2]";
-
+
print("Invalid group : " + group);
return -1; // error
}
@@ -124,7 +124,7 @@ RADIUS2000.cue = function (channel, control, value, status, group) {
}
RADIUS2000.keylock = function (channel, control, value, status, group) {
- var keylockStat = engine.getValue(RADIUS2000.currentDeck2(group),"keylock");
+ var keylockStat = engine.getValue(RADIUS2000.currentDeck2(group),"keylock");
if (value == 0x7F & keylockStat == 1) {
engine.setValue(RADIUS2000.currentDeck2(group),"keylock",0);
midi.sendShortMsg(0x90,0x06,0x00);
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
index 3e9cb49f7a..07dbdb209d 100644
--- a/res/controllers/American-Audio-VMS4-scripts.js
+++ b/res/controllers/American-Audio-VMS4-scripts.js
@@ -7,12 +7,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -92,7 +92,7 @@ VMS4.init = function (id) { // called when the MIDI device is opened & set up
engine.softTakeover("[EffectRack1_EffectUnit4]","super1",true);
engine.softTakeover("[EffectRack1_EffectUnit4]","mix",true);
engine.softTakeover("[EffectRack1_EffectUnit4]","super1",true);
-
+
print("American Audio "+VMS4.id+" initialized.");
}
@@ -229,7 +229,7 @@ VMS4.Deck.prototype.keyLockButtonHandler = function(value) {
VMS4.Deck.prototype.effectParamButtonHandler = function(value) {
// Couldn't get this to work. The buttons are mapped instead to VMS4.effectParameterButton
-
+
// if(value == ButtonState.pressed) {
// this.controlEffectParameter=!this.controlEffectParameter;
// if (this.controlEffectParameter) {
@@ -306,19 +306,19 @@ VMS4.pitchCenter = function(channel, control, value, status, group) {
VMS4.effectSelect = function(channel, control, value, status, group) {
var deck = VMS4.GetDeck(group);
-
+
if (deck.effectSelect == -1 || isNaN(deck.effectSelect)) deck.effectSelect = value;
-
+
// Take wrap around into account
var wrapCount = 0;
if (value>=0 && value<10 && deck.effectSelect>117 && deck.effectSelect<=127) wrapCount+=1;
if (value>117 && value<=127 && deck.effectSelect>=0 && deck.effectSelect<10) wrapCount-=1;
-
+
var diff = value - deck.effectSelect;
deck.effectSelect=value;
-
+
diff += wrapCount*128;
-
+
engine.setValue("[EffectRack1_EffectUnit"+VMS4.GetDeckNum(group)+"_Effect1]",
"effect_selector",diff);
}
@@ -366,17 +366,17 @@ VMS4.effectParameterButton = function(channel, control, value, status, group) {
VMS4.sampleSelect = function(channel, control, value, status, group) {
var deck = VMS4.GetDeck(group);
if (deck.sampleSelect == -1) deck.sampleSelect = value;
-
+
// Take wrap around into account
var wrapCount = 0;
if (value>=0 && value<10 && deck.sampleSelect>117 && deck.sampleSelect<=127) wrapCount+=1;
if (value>117 && value<=127 && deck.sampleSelect>=0 && deck.sampleSelect<10) wrapCount-=1;
-
+
var diff = value - deck.sampleSelect;
deck.sampleSelect=value;
-
+
diff += wrapCount*128;
-
+
engine.setValue("[Playlist]","SelectTrackKnob",diff);
}
@@ -424,10 +424,10 @@ VMS4.strip_scroll = function(channel, control, value, status, group) {
// Higher on the strip gives a higher value, and up is negative on Library
// scroll controls
if (side === "Left") {
- engine.setValue("[Playlist]", "SelectPlaylist",
+ engine.setValue("[Playlist]", "SelectPlaylist",
VMS4.touchStripPos[side] - value);
} else {
- engine.setValue("[Playlist]", "SelectTrackKnob",
+ engine.setValue("[Playlist]", "SelectTrackKnob",
VMS4.touchStripPos[side] - value);
}
}
diff --git a/res/controllers/Behringer-BCD3000-Advanced-scripts.js b/res/controllers/Behringer-BCD3000-Advanced-scripts.js
index 1b92e7d7da..8e0757bbfc 100644
--- a/res/controllers/Behringer-BCD3000-Advanced-scripts.js
+++ b/res/controllers/Behringer-BCD3000-Advanced-scripts.js
@@ -5,7 +5,7 @@ BehringerBCD3000.UseAcceleration = true;
BehringerBCD3000.JogSensitivity = 0.5;
BehringerBCD3000.init = function (id) { // called when the device is opened & set up
-
+
BehringerBCD3000.reset();
// Ask BCD to send the current values of all rotary knobs and sliders
@@ -22,7 +22,7 @@ BehringerBCD3000.shutdown = function () {
BehringerBCD3000.reset();
- // Reenable jog acceleration
+ // Reenable jog acceleration
if (!BehringerBCD3000.UseAcceleration)
midi.sendShortMsg(0xB0, 0x63, 0x7F);
};
@@ -51,7 +51,7 @@ BehringerBCD3000.getDeck = function (group) {
return 0;
else if (group == "[Channel2]")
return 1;
-
+
print("Invalid group : " + group);
return -1; // error
}
@@ -114,7 +114,7 @@ BehringerBCD3000.scratchButton = function (channel, control, value, status, grou
midi.sendShortMsg(0xB0, 0x0B, 0x7F);
} else {
// Turn off the scratch light
- if (!deck)
+ if (!deck)
midi.sendShortMsg(0xB0, 0x13, 0x00);
else
midi.sendShortMsg(0xB0, 0x0B, 0x00);
@@ -129,7 +129,7 @@ BehringerBCD3000.stopScratch = function(deck) {
}
-//Set loop function
+//Set loop function
BehringerBCD3000.loop = function (channel, control, value, status, group) {
if (value)
action = "loop_in";
@@ -138,7 +138,7 @@ BehringerBCD3000.loop = function (channel, control, value, status, group) {
engine.setValue(group, action, 1);
};
-//On button function
+//On button function
BehringerBCD3000.On = function (channel, control, value, status, group) {
if (BehringerBCD3000.actionKey){
@@ -158,7 +158,7 @@ BehringerBCD3000.On = function (channel, control, value, status, group) {
};
};
-//Action button function
+//Action button function
BehringerBCD3000.Action = function (channel, control, value, status, group) {
if (BehringerBCD3000.onKey){
BehringerBCD3000.onKey = false;
@@ -179,7 +179,7 @@ BehringerBCD3000.Action = function (channel, control, value, status, group) {
}
};
-//Key button function
+//Key button function
BehringerBCD3000.keykey = function (channel, control, value, status, group) {
// toggle "alt" flag
if (value) BehringerBCD3000.alt = !BehringerBCD3000.alt;
@@ -198,7 +198,7 @@ BehringerBCD3000.keykey = function (channel, control, value, status, group) {
};
-//Ext-A button function
+//Ext-A button function
//BehringerBCD3000.extakey = function (channel, control, value, status, group) {
// // toggle inputA flag
// if (value) BehringerBCD3000.inputA = !BehringerBCD3000.inputA;
@@ -211,7 +211,7 @@ BehringerBCD3000.keykey = function (channel, control, value, status, group) {
// }
//};
-//Ext-B button function
+//Ext-B button function
//BehringerBCD3000.extbkey = function (channel, control, value, status, group) {
// // toggle inputB flag
// if (value) BehringerBCD3000.inputB = !BehringerBCD3000.inputB;
diff --git a/res/controllers/Behringer-BCD3000-scripts.js b/res/controllers/Behringer-BCD3000-scripts.js
index d6098e50bf..044f566234 100644
--- a/res/controllers/Behringer-BCD3000-scripts.j