summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorFayaaz Ahmed <fayaaz@users.noreply.github.com>2021-02-13 20:35:18 +0000
committerGitHub <noreply@github.com>2021-02-13 20:35:18 +0000
commit06f1dcacbfa2ca983e1adadf46fc5610a40a25dc (patch)
tree59ffb07d584ac38efbad852930dda11eaddd9576 /res
parentff15b717af09b612b5e781fa4e33bcb45a1c9df1 (diff)
More lint fixes
Diffstat (limited to 'res')
-rw-r--r--res/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/res/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js b/res/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js
index 854fa7a7ee..ec350c64e8 100644
--- a/res/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js
+++ b/res/controllers/Traktor-Kontrol-S4-MK2-hid-scripts.js
@@ -1741,26 +1741,23 @@ TraktorS4MK2.pregainResetHandler = function(field) {
return;
}
if (TraktorS4MK2.controller.play_shift_pressed) {
- // If the 'play modifier' button is held down round the BPM
+ // If the 'play modifier' button is held down round the BPM
var bpm = engine.getValue(group, "bpm");
var rounded_value = Math.round(bpm);
var delta = (bpm - rounded_value)*100;
- print(delta);
if (delta > 0) {
for (var i = 0; i < delta; i++) {
- engine.setValue(group, "beats_adjust_slower", true)
+ engine.setValue(group, "beats_adjust_slower", true);
}
- }
- else if (delta < 0) {
+ } else if (delta < 0) {
for (var i = 0; i < delta; i++) {
- engine.setValue(group, "beats_adjust_faster", true)
+ engine.setValue(group, "beats_adjust_faster", true);
}
- }
+ }
} else {
// Otherwise reset the gain on the channel
- print(group)
engine.setValue(group, "pregain", "1.0");
}
};