Skip to content

Commit

Permalink
code cleanup 3
Browse files Browse the repository at this point in the history
Co-authored-by: Swiftb0y <[email protected]>
  • Loading branch information
NotYourAverageAl and Swiftb0y authored Jun 12, 2024
1 parent da14b57 commit f4882d7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions res/controllers/Numark-Scratch-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,9 @@ NumarkScratch.EffectUnit = function(deckNumber) {
this.paddle = new components.Button({
group: `[EffectRack1_EffectUnit${deckNumber}]`,
inKey: `group_[Channel${deckNumber}]_enable`,
input: function(channel, control, value, _status, _group) {
this.isPress = value !== 0;
engine.setValue("[EffectRack1_EffectUnit1]", `group_[Channel${deckNumber}]_enable`, this.isPress);
engine.setValue("[EffectRack1_EffectUnit2]", `group_[Channel${deckNumber}]_enable`, this.isPress);
this.trigger();
inSetValue: function(value) {
engine.setValue("[EffectRack1_EffectUnit1]", this.inKey, value);
engine.setValue("[EffectRack1_EffectUnit2]", this.inKey, value);
}
});

Expand Down

0 comments on commit f4882d7

Please sign in to comment.