Remarks
When using
$NI_SIGNAL_TIMER_BEAT
, the maxium resolution is 24 ticks per beat/quarter note.
Examples
on init
set_listener($NI_SIGNAL_TIMER_BEAT,1)
end on
on
listener
if ($NI_SIGNAL_TYPE = $NI_SIGNAL_TIMER_BEAT)
message($ENGINE_UPTIME)
end if
end on
Triggering the listener callback every beat. Triggering will occur even when transport is stopped.
See Also
change_listener_par()
$NI_SIGNAL_TYPE
11.4. stop_wait()
stop_wait(
,
)
Stops wait commands in the specified callback
The callback’s ID number in which the wait commands will be stopped
0
: stops only the current wait
1
: stops the current wait and ignores all following wait commands in
this callback.
Remarks
• Be careful with while loops when stopping all wait commands in a callback.
Examples
on init
declare ui_button $Play
declare $id
end on
on ui_control ($Play)
if ($Play = 1)
$id := $NI_CALLBACK_ID
play_note(60,127,0,$DURATION_QUARTER)
wait($DURATION_QUARTER)
if ($Play = 1)
play_note(64,127,0,$DURATION_QUARTER)
Do'stlaringiz bilan baham: