Param_delta transform an absolute value into relative (example: 0.5, 0.7, 0.8 will become +0.0, +0.2, +0.1) Param_cast 'frac' : provides the decimal part of a number. Param_cast 'int_trunc' : provides the integer part of a number without rounding to the nearest integer
To format a number as text with a specific number of digits: 'get_bpm & param_cast "000"' Valid types are 'integer', 'float', 'percentage', 'ms', 'boolean', 'beats', 'text'.Ĭasting to text can also optionally limit the number of characters: 'get_browsed_song "artist" & param_cast "text" 5' Param_cast cast the value of the previous query action into a new type: 'pitch_range & param_cast "percentage"'. Param_pingpong transform the value of the calling slider/encoder from a linear scale to a forth-and-back scale Param_mod wrap the value of the calling slider/encoder if more than the given value Param_invert invert the value of the calling slider/encoder/button (1-x): 'param_invert & pitch_slider' Param_pow param_pow y : computes the power of the caller to the power of y. Param_1_x invert the value of the calling slider/encoder/button (calculate 1/x) 'param_1_x & effect slider' The parameter can also be an action 'cue_pos 0 & param_multiply "get_time total 1000"' Param_multiply multiply the value of the calling slider/encoder/button by the given value: 'param_multiply 300% & effect slider' Both parameters can be actions instead of values: 'param_add `get_var a` `get_var b`' Param_add add the given value to the value of the calling slider/encoder/buttonĪdd the value of the first parameter with the value of the second parameter. Param_smaller check if the value of the calling slider/encoder/button is smaller than something: 'param_smaller 0 ? sampler loop 200% : sampler loop 50%' Param_contains check if the value of the calling action contains the string in the parameter For example: param_equal `get_browsed_song 'type'` "audio" To compare a string with the result of an action, use param_equal `action param` "string". Param_equal Check if the value of the calling slider/encoder/button is equal to something Both parameters can be actions instead of values: 'param_bigger pitch pitch_slider' Param_bigger (or param_greater ) check if the value of the calling slider/encoder/button is bigger than something: 'param_bigger 0 ? sampler loop 200% : sampler loop 50%'Ĭompare value of the first parameter with the value of the second parameter. Isrepeat execute different actions depending if the key is being repeated or if it's the first message (on Windows, keyboard shortcuts are usually auto-repeated while held down): 'isrepeat ? nothing : goto_cue')Ĭonstant (or get_constant ) Return the specified valueĮxample: 'get constant 75%' always returns 75%Ĭolor_mix Mix two colors based on an action in the third parameter
Up execute different actions depending if the key if pressed or released: 'up ? action1 : action2'ĭown execute different actions depending if the key if pressed or released: 'down ? action1 : action2'