Parameters – VDJScript verbs
27 verbs in Parameters. The verb text stays in English.
- blinkturn on and off the LED, once per second. You can specify the speed: 'blink 1000ms' Speed can also be specified in number of beats: 'blink 1bt'. The time blinking can also be specified: 'blink 1bt 25%'
- colorcolor "red" color "#C08040" color 0.8 0.5 0.25 color 75% "red" (returns a dimmed red) color 0.66 (returns a gray)
- color_mixMix two colors based on an action in the third parameter color_mix white red `get_limiter`
- constantReturn the specified value Example: 'get constant 75%' always returns 75%
- dimequivalent of "constant 0.1"
- fadeout'loop & fadeout 10000ms 3000ms' will return 100% when loop is on, and fade out to 0% after 10 seconds in 3 seconds when loop turns off Alternatively, the action can be entered as the third parameter in backticks: 'fadeout 10000ms 3000ms `loop`'
- falsereturns false
- param_1_xinvert the value of the calling slider/encoder/button (calculate 1/x) 'param_1_x & effect slider'
- param_addadd the given value to the value of the calling slider/encoder/button add the value of the first parameter with the value of the second parameter. Both parameters can be actions instead of values: 'param_add `get_var a` `get_var b`'
- param_biggercheck if the value of the calling slider/encoder/button is bigger than something: 'param_bigger 0 ? sampler loop 200% : sampler loop 50%' compare value of the first parameter with the value of the second parameter. Both parameters can be actions instead of values: 'param_bigger pitch pitch_slider'
- param_castcast the value of the previous query action into a new type: 'pitch_range & param_cast "percentage"'. Valid types are 'integer', 'float', 'percentage', 'ms', 'boolean', 'beats', 'text'. casting to text can also optionally limit the number of characters: 'get_browsed_song "artist" & param_cast "text" 5' to format a number as text with a specific number of digits: 'get_bpm & param_cast "000"' param_cast 'int_trunc' : provides the integer part of a number without rounding to the nearest integer param_cast 'frac' : provides the decimal part of a number. param_cast 'relative' and param_cast 'absolute' : change the parameter to be a relative or absolute value
- param_containsCheck if the value of the calling action contains the string in the parameter.
- param_deltatransform an absolute value into relative (example: 0.5, 0.7, 0.8 will become +0.0, +0.2, +0.1)
- param_equalCheck if the value of the calling slider/encoder/button is equal to something To compare a string with the result of an action, use param_equal `action param` "string". For example: param_equal `get_browsed_song 'type'` "audio"
- param_invertinvert the value of the calling slider/encoder/button (1-x): 'param_invert & pitch_slider'
- param_limitClamps the implicit value to a range: param_limit <min> <max>. Not in VirtualDJ 8.5 build 9644.
- param_lowercasechange the text result of the previous element in the script into lowercase
- param_make_discreteuseful for smooth endless encoders, to make them discrete Example: 'param_make_discrete 0.1 & param_bigger 0 ? loop_move +100% : param_smaller 0 ? loop_move - 100%'
- param_modwrap the value of the calling slider/encoder if more than the given value
- param_multiplymultiply the value of the calling slider/encoder/button by the given value: 'param_multiply 300% & effect slider' The parameter can also be an action 'cue_pos 0 & param_multiply "get_time total 1000"' Can also be used with two parameters, in which case both parameters can be actions or values: 'param_multiply `get_var a` `get_var b`' or 'param_multiply 50% `get_sampler_loop`'
- param_pingpongtransform the value of the calling slider/encoder from a linear scale to a forth-and-back scale
- param_powparam_pow y : computes the power of the caller to the power of y. Can be 0.5 for calculating square root. Can also be used with 2 parameters, both of which can be actions or values. Note that the first parameter is the power, and the second parameter is the base. 'param_pow `get_var a` `get_var b`' or 'param_pow 2 `get_sampler_loop`'
- param_smallercheck if the value of the calling slider/encoder/button is smaller than something: 'param_smaller 0 ? sampler loop 200% : sampler loop 50%'
- param_ucfirstchange the first letter into upper case and the rest in lower case
- param_uppercasechange the text result of the previous element in the script into uppercase
- pulsereturn true when the previous action turns to true only for the duration specified: 'is_using 'equalizer' & pulse 2000ms'
- truereturns true