Skip to content

Commit b5e78de

Browse files
daschuerSwiftb0y
andauthored
fix error 'deck' is not defined
Co-authored-by: Swiftb0y <[email protected]>
1 parent ab7690d commit b5e78de

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

res/controllers/Korg-KAOSS-DJ-scripts.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,10 @@ KAOSSDJ.fxTouchMoveHorizontal = function(_channel, _control, value, _status, _gr
200200
.forEach(deck => engine.setValue(`[EffectRack1_EffectUnit${deck.deckNumber}]`, "super1", value / 127));
201201
};
202202

203-
KAOSSDJ.fxTouch = function(channel, _control, value, _status, _group) {
203+
KAOSSDJ.fxTouch = function(channel, _control, value, _status, group) {
204204
if (value === MIDI_OFF) {
205-
const fxGroup = `[EffectRack1_EffectUnit${deck.deckNumber}]`;
206-
engine.setValue(fxGroup, "mix", 0);
207-
engine.setValue(fxGroup, "super1", 0);
205+
engine.setValue(group, "mix", 0);
206+
engine.setValue(group, "super1", 0);
208207
}
209208
};
210209

0 commit comments

Comments
 (0)