


Sends messages just before the script stops running when you close Deckadance. (ScratchA > 0) ? sendMidiMessage(0x90, 0x48, on) : sendMidiMessage(0x90, 0x48, off) Lights the Scratch button on or off if the ScratchA variable is on or off. (get(PLAY_PAUSE_A) > 0) ? sendMidiMessage(0x90, 0x3B, on) : sendMidiMessage(0x90, 0x3B, off) Lights the Play button LED when Play is active. Some controllers may support other values for brightness or blinking. MIDI values for lighting LED on or off. Encoder knob used to increas or decrease a parameter value.Ĭase 0x1B: set(EFFECT_PARAM_1_GROUP_A, get(EFFECT_PARAM_1_GROUP_A) + valueInc * 0.1) break Jog wheel, second value is pitch bend sensitivity, third value is scratch sensitivity.Ĭase 0x19: set(JOG_A, value - 64.0, 0.0001, -0.002) break MIDI controller messages, mostly used to change parameters.Ĭase 0x16: set(VOLUME_A, value01) break The line below converts the MIDI input values of 0 to 127 to 0 to 1 format to link to parameters Void OnMidiMessageReceived(const string &in name, int status, int data, int value) Deckadance Remote Control Basic Test Implementation Note that scripts are based on C/C++ syntax. Here are basic and intermediate script examples with comments at the various lines of code. This is also useful for excluding parts of the script when testing. Use two forward slashes '//' before words you want to use as a comment or reminder in the script text, without them actually being included in the script when it runs. Although this wont map LED feedback or any special behaviors. You can also map a controller manually on the normal MIDI mapping editor, that includes a learn function, then export a script file you can continue to edit. Most of the time, the message a button needs to receive to illuminate is the same as the message it sends. Recieved is shown, so you can make a note of it to add in the script. To discover what messages a controller sends, you can either refer to its documentation, or when the MIDI scripting tab is open and you press a button or move a knob or fader, the message Deckadance commands are listed in the included dd_commands.h file. MIDI messages are handled in Hexadecimal number format.
#DECKADANCE MAPPING WINDOWS#

Scripts are essentially a list of MIDI input messages from a specific controller linked to Deckadance 2 commands, and Deckadance commands linked to MIDI output messages that light controls orīuttons on the controller. Ask nicelyįor information on using a script see the MIDI Scripting preferences page. If your controller is not already supported with a script, why not contact the controller manufacturer and let them know about Deckadance and scripting. The data from Deckadance to the controller is 'controller feedback' and can be used to light buttons etc on the controller, where appropriate. Scripts filter MIDI controller data as it passes from the controller to Deckadance and from Deckadance back to the controller, so that they understandĮach other.
