Hi there,
is it possible to sync this animation Code to the TM PRO (Sampler Mode) - Speed Knob?
on init
declare ui_button $anim_on_off
declare ui_label $animation(1,1)
declare $frame
set_control_par_str(get_ui_id($animation),$CONTROL_PAR_PICTURE,"animation")
set_listener($NI_SIGNAL_TIMER_MS,40000)
end on
on listener
if ($NI_SIGNAL_TYPE=$NI_SIGNAL_TIMER_MS)
if ($anim_on_off=1)
inc($frame)
if ($frame=300)
$frame := 0
end if
set_control_par(get_ui_id($animation),$CONTROL_PAR_PICTURE_STATE,$frame)
end if
end if
end on