summaryrefslogtreecommitdiffstats
path: root/res/controllers/Behringer-CMDStudio4a-scripts.js
diff options
context:
space:
mode:
authorCraig Easton <Mixxx@ShelobsLair.net>2016-01-27 00:18:39 +0000
committerCraig Easton <Mixxx@ShelobsLair.net>2016-01-27 00:18:39 +0000
commited5fc99c8687b492cba9a12466c995e987fefd54 (patch)
treeae2ec7e918920f92884c086ff847fbbde36964c0 /res/controllers/Behringer-CMDStudio4a-scripts.js
parentdfac9cb79485c6978cedaa294b8b11f9a5c5225a (diff)
BehringerCMDStudio4a mapping v1.4
Further minor clean-up.
Diffstat (limited to 'res/controllers/Behringer-CMDStudio4a-scripts.js')
-rw-r--r--res/controllers/Behringer-CMDStudio4a-scripts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/controllers/Behringer-CMDStudio4a-scripts.js b/res/controllers/Behringer-CMDStudio4a-scripts.js
index da0b468fe4..1b01cd5495 100644
--- a/res/controllers/Behringer-CMDStudio4a-scripts.js
+++ b/res/controllers/Behringer-CMDStudio4a-scripts.js
@@ -97,8 +97,8 @@ BehringerCMDStudio4a.del = function (channel, control, value, status, group) {
} else {
// Button released.
BehringerCMDStudio4a.delPushed = false;
+ // Only toggle the DEL-mode if the "shift" function wasn't used.
if (!BehringerCMDStudio4a.delShiftUsed) {
- // Only toggle the DEL-mode if the "shift" function wasn't used.
BehringerCMDStudio4a.delButtonState[channel] = !BehringerCMDStudio4a.delButtonState[channel];
midi.sendShortMsg(0x90 + channel, control, BehringerCMDStudio4a.delButtonState[channel] ? 0x01 : 0x00);
}
@@ -149,8 +149,8 @@ BehringerCMDStudio4a.fxAssign = function (channel, control, value, status, group
{
// Button released.
BehringerCMDStudio4a.fxAssignPushed = false;
+ // Only toggle the effect on release if the "shift" function wasn't used.
if (!BehringerCMDStudio4a.fxAssignShiftUsed) {
- // Only toggle the effect on release if the "shift" function wasn't used.
script.toggleControl(group,"group_[Channel"+(channel+1)+"]_enable");
}
}