
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 2 MIDI MAPPING WINDOWS
dd_commands.h - list of Deckadance commands available for scripting.ĭrag and drop a script file to Windows Notepad to edit it.tutorial.txt - provides small scripting tutorial.To learn more about writing script files, check the script_files sub folder of the Deckadance 2 installation for the following: You can also use a script to make a custom version of existing controllers. A good place to start looking for scripts for your controller is theĭeckadance forum. Generally we expect scripts to be written by manufacturers or advanced users. Writing scripts does require some time and inclination to learn the scripting language andĭeckadance 2 commands. Scripts use the AngelScript language that follows the widely known C / C++ syntax and data types. More complicated behaviors are also possible, such as changing the command a button sends if a shift button is also held, for example. For example, when a controller sends a MIDI note message from its play button, you can map that to the play (or any) command in Deckadance, and map the play state to theĬontroller play button light. 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.
