summaryrefslogtreecommitdiffstats
path: root/res/controllers/American-Audio-VMS4-scripts.js
diff options
context:
space:
mode:
authorSean M. Pappalardo <pegasus@renegadetech.com>2015-12-09 17:38:59 -0800
committerSean M. Pappalardo <pegasus@renegadetech.com>2015-12-11 07:40:49 -0800
commit0f21e54330fc3787028d6e2e9ff9858ed1a9da48 (patch)
treebd83f45fd574acdbf42b0f9d209bdb1ae6566552 /res/controllers/American-Audio-VMS4-scripts.js
parente4024b4c2a01e65e3bf2f1d386f5bc71f9d96b6f (diff)
Cherry-picked a second commit from st_fix to fix my mess.
Diffstat (limited to 'res/controllers/American-Audio-VMS4-scripts.js')
-rw-r--r--res/controllers/American-Audio-VMS4-scripts.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/res/controllers/American-Audio-VMS4-scripts.js b/res/controllers/American-Audio-VMS4-scripts.js
index bdc316c998..fdedcf8a88 100644
--- a/res/controllers/American-Audio-VMS4-scripts.js
+++ b/res/controllers/American-Audio-VMS4-scripts.js
@@ -228,7 +228,6 @@ VMS4.Deck.prototype.keyLockButtonHandler = function(value) {
}
VMS4.Deck.prototype.effectParamButtonHandler = function(value) {
-// // Reset pitch only on entrance to center position
// if(value == ButtonState.pressed) {
// this.controlEffectParameter=!this.controlEffectParameter;
// if (this.controlEffectParameter) {
@@ -342,7 +341,6 @@ VMS4.effectControl = function(channel, control, value, status, group) {
VMS4.effectParameterButton = function(channel, control, value, status, group) {
var deck = VMS4.GetDeck(group);
// deck.Buttons.FXParam.handleEvent(group, value);
- // Reset pitch only on entrance to center position
if(value > 0x40) {
var deckNum = VMS4.GetDeckNum(group);
deck.controlEffectParameter=!deck.controlEffectParameter;
@@ -350,13 +348,13 @@ VMS4.effectParameterButton = function(channel, control, value, status, group) {
// Super knob
deck.Buttons.FXParam.setLed(LedState.on);
// Ignore the next wet/dry value
- engine.softTakeoverIgnoreNext("[EffectRack1_EffectUnit"+deckNum+"]","mix");
+ engine.softTakeoverIgnoreNextValue("[EffectRack1_EffectUnit"+deckNum+"]","mix");
}
else {
// Wet/dry
deck.Buttons.FXParam.setLed(LedState.off);
// Ignore the next Super knob value
- engine.softTakeoverIgnoreNext("[EffectRack1_EffectUnit"+deckNum+"]","super1");
+ engine.softTakeoverIgnoreNextValue("[EffectRack1_EffectUnit"+deckNum+"]","super1");
}
}
}