

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 tutorial windows#
