Skip to content

Commit

Permalink
Merge pull request #13196 from Swiftb0y/fix/gh13134-novation-dicer-re…
Browse files Browse the repository at this point in the history
…moved-flanger

Novation Dicer: remove flanger mapping with quickeffect toggle
  • Loading branch information
JoergAtGithub committed May 17, 2024
2 parents da261b6 + 6a2df78 commit 9e9d7ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
16 changes: 8 additions & 8 deletions res/controllers/Novation Dicer.midi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@
<control>
<status>0x9f</status>
<midino>0x3e</midino>
<group>[Channel2]</group>
<key>NovationDicer.flangeEffect</key>
<group>[QuickEffectRack1_[Channel2]_Effect1]</group>
<key>NovationDicer.toggleQuickEffect</key>
<description></description>
<options>
<script-binding/>
Expand Down Expand Up @@ -574,8 +574,8 @@
<control>
<status>0x9c</status>
<midino>0x3e</midino>
<group>[Channel1]</group>
<key>NovationDicer.flangeEffect</key>
<group>[QuickEffectRack1_[Channel1]_Effect1]</group>
<key>NovationDicer.toggleQuickEffect</key>
<description></description>
<options>
<script-binding/>
Expand Down Expand Up @@ -779,8 +779,8 @@
<off>0x0</off>
</output>
<output>
<group>[Channel1]</group>
<key>flanger</key>
<group>[QuickEffectRack1_[Channel1]_Effect1]</group>
<key>enabled</key>
<description></description>
<minimum>0.1</minimum>
<maximum>1</maximum>
Expand Down Expand Up @@ -856,8 +856,8 @@
<off>0x0</off>
</output>
<output>
<group>[Channel2]</group>
<key>flanger</key>
<group>[QuickEffectRack1_[Channel2]_Effect1]</group>
<key>enabled</key>
<description></description>
<minimum>0.1</minimum>
<maximum>1</maximum>
Expand Down
6 changes: 2 additions & 4 deletions res/controllers/Novation-Dicer-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ NovationDicer.init = function (id)
midi.sendShortMsg(0x9f,0x43,NovationDicer.softOrange);
midi.sendShortMsg(0x9f,0x44,NovationDicer.softOrange);
midi.sendShortMsg(0x9f,0x45,NovationDicer.softOrange);

engine.setValue("[Flanger]", "lfoDepth", 1); //Crank up the depth so the flanger does something
}


Expand Down Expand Up @@ -358,11 +356,11 @@ NovationDicer.stutter = function(group)
}
}

NovationDicer.flangeEffect = function(channel, control, value, status, group)
NovationDicer.toggleQuickEffect = function(channel, control, value, status, group)
{
if (value) //Button pressed
{
engine.setValue(group, "flanger", !engine.getValue(group, "flanger")); //Toggle the flanger
script.toggleControl(group, "enabled");
}
}

Expand Down

0 comments on commit 9e9d7ce

Please sign in to comment.