Skip to content

Commit

Permalink
moved status sysex after components creation
Browse files Browse the repository at this point in the history
  • Loading branch information
h67ma committed Sep 1, 2021
1 parent 45a50b0 commit 8b7a3b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions res/controllers/Numark-Mixtrack-Pro-FX-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ MixtrackProFX.PadModeControls = {
MixtrackProFX.shifted = false;

MixtrackProFX.init = function() {
// send sysexes
// disable demo lightshow
var exitDemoSysex = [0xF0, 0x7E, 0x00, 0x06, 0x01, 0xF7];
midi.sendSysexMsg(exitDemoSysex, exitDemoSysex.length);

var statusSysex = [0xF0, 0x00, 0x20, 0x7F, 0x03, 0x01, 0xF7];
midi.sendSysexMsg(statusSysex, statusSysex.length);

// enables 4 bottom pads "fader cuts"
var faderCutSysex = [0xF0, 0x00, 0x20, 0x7F, 0x03, 0xF7];
midi.sendSysexMsg(faderCutSysex, faderCutSysex.length);
Expand All @@ -89,6 +86,9 @@ MixtrackProFX.init = function() {
MixtrackProFX.browse = new MixtrackProFX.Browse();
MixtrackProFX.gains = new MixtrackProFX.Gains();

var statusSysex = [0xF0, 0x00, 0x20, 0x7F, 0x03, 0x01, 0xF7];
midi.sendSysexMsg(statusSysex, statusSysex.length);

engine.makeConnection("[Channel1]", "VuMeter", MixtrackProFX.vuCallback);
engine.makeConnection("[Channel2]", "VuMeter", MixtrackProFX.vuCallback);

Expand Down

0 comments on commit 8b7a3b9

Please sign in to comment.