Repeat – VDJScript verbs
8 verbs in Repeat. The verb text stays in English.
- doubleclickexecute different actions depending if the key is pressed twice in a short period of time or not: 'doubleclick ? automix : mix_now'. you can specify the time between two presses ('doubleclick 1000ms'), by default it's 300ms.
- holdingexecute different actions depending if the key is pressed for a long time or not: 'holding ? automix : mix_now'. you can specify the time ('holding 1000ms'), by default it's 500ms.
- repeatrepeat the actions every x ms as long as the key is pressed: 'repeat 1000ms & browser_scroll +1' (default is 500ms if no speed is specified. Second parameter can specify a delay before repeating the first time)
- repeat_startRepeat an action at a specified interval: 'repeat_start 'myrepeatname' 1000ms 5 & browser_scroll +1' (first parameter is an identifier name, second parameter is the interval and the third optional parameter can specify a number of times to repeat). The first action will be performed after an interval has passed. The interval can be specified in milliseconds, beats, or can be an action of itself. 'repeat_start 'myrepeatname' 1bt' or 'repeat_start 'myrepeatname `get_var a`'
- repeat_start_fadeFade from one value to another in a specified time and optionally in a specified number of steps: 'repeat_start_fade 'myfadename' 0.0 1.0 1000ms 4 1.0 & level' First parameter is name, so it can be stopped early using repeat_stop. Second parameter is start value, third parameter is end value, fourth parameter is time (milliseconds or beats), fifth parameter is number of steps (optional, default is smooth). Sixth parameter is curve (optional) The action will be executed with the current value as a implicit parameter. All parameters except name can be script as well by using backticks. For example: 'repeat_start_fade 'myfadename' `level` `get_var targetLevel` 1000ms 4 & level'. In this example, by using level as starting value, it will start to fade from the current value.
- repeat_start_instantRepeat an action at a specified interval: 'repeat_start_instant 'myrepeatname' 1000ms 5 & browser_scroll +1' (first parameter is an identifier name, second parameter is the interval and the third optional parameter can specify a number of times to repeat). The first action will be performed immediately.
- repeat_stopstop a previous repeat_start or repeat_start_instant action: 'repeat_stop 'myrepeatname''
- waitwait for the specified amount of time between two script actions: 'wait 1bt & pause', 'wait 500ms & play'