Time-Related Commands
80
KSP Reference Manual
See Also
ms_to_ticks()
$NI_SONG_POSITION
11.7. wait()
wait( )
Pauses the callback for the specified time in microseconds
Remarks
wait()
stops the callback at the position in the script for the specified time. In other words, it
freezes the callback, although other callbacks can be accessed or processed. After the specified
time period the callback continues.
Examples
on note
ignore_event($EVENT_ID)
wait($DURATION_BAR - $DISTANCE_BAR_START)
play_note($EVENT_NOTE,$EVENT_VELOCITY,0,-1)
end on
Quantize all notes to the downbeat of the next measure
See Also
stop_wait()
wait_ticks()
while()
$DURATION_QUARTER
11.8. wait_ticks()
wait_ticks()
Pauses the callback for the specified time in ticks
Remarks
Same as
wait()
, but with ticks as the wait time parameter.
Do'stlaringiz bilan baham: |