summaryrefslogtreecommitdiffstats
path: root/res/controllers/Numark-Mixtrack-3-scripts.js
diff options
context:
space:
mode:
authorRadu Suciu <radusuciu@gmail.com>2017-06-20 21:29:22 -0700
committerRadu Suciu <radusuciu@gmail.com>2017-06-20 21:29:22 -0700
commit397156f89150a7c78b3ffc5db30998b1aa5ae87d (patch)
treeca4b16e31823b7e634388de99b281843967cb710 /res/controllers/Numark-Mixtrack-3-scripts.js
parent5a675f253d3032f10445ab8ec5d0d510d445a2d4 (diff)
Partial revert to deprecated library controls
The old library controls are better for my use case, and I imagine for many people with smaller controllers. Suggestions on how to make use of the new library controls are welcome..
Diffstat (limited to 'res/controllers/Numark-Mixtrack-3-scripts.js')
-rw-r--r--res/controllers/Numark-Mixtrack-3-scripts.js19
1 files changed, 4 insertions, 15 deletions
diff --git a/res/controllers/Numark-Mixtrack-3-scripts.js b/res/controllers/Numark-Mixtrack-3-scripts.js
index aba2958534..9146c28635 100644
--- a/res/controllers/Numark-Mixtrack-3-scripts.js
+++ b/res/controllers/Numark-Mixtrack-3-scripts.js
@@ -1113,22 +1113,11 @@ NumarkMixtrack3.BrowseKnob = function(channel, control, value, status, group) {
// value = 1 / 2 / 3 ... for positive //value = 1 / 2 / 3
var nval = (value > 0x40 ? value - 0x80 : value);
- // unmodified behaviour
- if (!shifted) {
- engine.setValue('[Library]', 'MoveVertical', nval);
- }
-
+ // SHIFT+Turn BROWSE Knob : directory mode --> select Play List/Side bar item
if (shifted) {
- // SHIFT+Turn BROWSE Knob : directory mode --> select Play List/Side bar item
- if (nval > 0) {
- for (var i = 0; i < nval; i++) {
- engine.setValue('[Library]', 'MoveDown', 1);
- }
- } else {
- for (var i = 0; i < -nval; i++) {
- engine.setValue('[Library]', 'MoveUp', 1);
- }
- }
+ engine.setValue('[Playlist]', 'SelectPlaylist', nval);
+ } else {
+ engine.setValue('[Playlist]', 'SelectTrackKnob', nval);
}
};