Skip to content

Commit

Permalink
Merge pull request #4287 from tandy-1000/2.3
Browse files Browse the repository at this point in the history
fix sampler, hotcue, beatloop buttons
  • Loading branch information
Swiftb0y authored Sep 16, 2021
2 parents a5a8772 + 395e6fb commit 23b8a60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions res/controllers/Numark_DJ2GO2_Touch_scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ DJ2GO2Touch.Deck = function(deckNumbers, midiChannel) {
for (var i = 1; i <= 4; i++) {
this.hotcueButtons[i] = new components.HotcueButton({
group: "[Channel" + script.deckFromGroup(this.currentDeck) + "]",
midi: [0x94 + midiChannel, 0x01 + i],
midi: [0x94 + midiChannel, 0x00 + i],
number: i
});
var sampler = i + (midiChannel * DJ2GO2Touch.padsPerDeck);
this.samplerButtons[i] = new components.SamplerButton({
group: "[Sampler" + sampler + "]",
midi: [0x94 + midiChannel, 0x31 + i],
midi: [0x94 + midiChannel, 0x30 + i],
number: sampler
});
this.beatloopButtons[i] = new components.Button({
group: "[Channel" + script.deckFromGroup(this.currentDeck) + "]",
midi: [0x94 + midiChannel, 0x11 + i],
midi: [0x94 + midiChannel, 0x10 + i],
number: i,
key: "beatloop_" + Math.pow(2, i-1) + "_toggle"
});
Expand Down

0 comments on commit 23b8a60

Please sign in to comment.