//////////////////////////////////////// // Numark V7 control script // // CopyLeft 2012, Mike Bucceroni // // ^that means do what ever you want^ // // made for Mixxx 1.11.x // //////////////////////////////////////// function RHMixxx() {} ///////////////////////////////// // // // Customization Variables // // // ///////////////////////////////// ////////////////////////// // // // Global Variables // // // ////////////////////////// //RHMixxx.Deck = true; // true = Deck A, false = Deck B ////////////////////////// // // // Initialization // // & // // Shutdown // // // ////////////////////////// RHMixxx.init = function () { //flash LED's //RHMixxx.FlashAllLED(); //Connect Control engine.connectControl("[Channel1]", "play", "RHMixxx.Channel1_playing"); } RHMixxx.shutdown = function () { RHMixxx.OffAllLED(); } /////////////////////////// // // // Functions // // // // // /////////////////////////// RHMixxx.Channel1_playing = function (channel, control, value, status, group) { { var currentlyPlaying = engine.getValue("[Channel1]","play"); if (currentlyPlaying == 0){ //engine.setValue("[Channel1]","play",1); midi.sendShortMsg(0x80,0x09,0x00); } else { if (currentlyPlaying == 1){ //engine.setValue("[Channel1]","play",0); midi.sendShortMsg(0x90,0x09,0x00); } } } engine.trigger("[Channel2]","play"); } RHMixxx.OffAllLED = function () { midi.sendShortMsg(0x80,0x09,0x00); } /////////////////////////// // // // The END // // :P // // // ///////////////////////////