Script actions

Please note that the syntax for actions is similar to events, with two crucial differences:

  • Curly brackets surround actions, while parentheses surround events.

  • Intervals cannot be defined for actions.

Several actions reference dropdown options and these actions must define the available dropdown option exactly as displayed in the dropdown, case-sensitive. The easiest way to get the correct text for these actions is to select the option in the dropdown and then right-click the dropdown. This will copy the selected option name to the clipboard, and you can paste it into the script action.

Actions

{cc:_channel_,_cc_,_value_}
{cc:1,1,64}

  • _channel_ is the Midi channel on which the command should be sent.
  • _cc_ is the target control in the range 0-127, or 128-160 for dual-byte commands.
  • _value_ is the value for the control in the range 0-127, or 0-16383 for dual-byte commands.
  • To send the received value, use #@e_ccvalue#.

Control Change actions can be defined for both single-byte ( standard) and dual-byte (14-bit) CC commands. A standard CC command has a control number ranging from 0 to 127 and a value range from 0 to 127.

A 14-bit CC command consists of two standard CC commands. The control numbers from 0 to 31 are designated to have a corresponding second command positioned 32 steps higher (from 32 to 63). These command pairs are represented as [0][32], [1][33], and so forth in plugin actions that can use dual-byte commands.  The value range for a dual-byte CC  command is 0-16383.

For the CC action, the dual-byte commands are assigned the numbers 128 to 160, with 128 representing the pair [0][32], 129 representing the pair [1][33], and so forth.

A dual-byte CC action will sequentially send both CC commands, and the value in the CC action (within the range of 0-16383) will be divided into the two commands in accordance with the MIDI standard.