jfino
Active Member
Hi Everyone,
I want to have couple of waveforms on display and each with its own independent play cursor.
Each sample is mapped on a different key.
I tried the code below but something is not right..
Any advice would be very helpful.
Thanks so much!!
I want to have couple of waveforms on display and each with its own independent play cursor.
Each sample is mapped on a different key.
I tried the code below but something is not right..
Any advice would be very helpful.
Thanks so much!!
Code:
on init
set_ui_height_px(350)
declare $play_pos
declare ui_waveform $Waveform(6,6)
attach_zone ($Waveform,find_zone ("Sample1"),0)
declare $play_pos2
declare ui_waveform $Waveform2(6,6)
attach_zone ($Waveform2,find_zone ("Sample2"),0)
end on
on note
while ($NOTE_HELD = 1)
$play_pos := get_event_par($EVENT_ID,$EVENT_PAR_PLAY_POS)
set_ui_wf_property($Waveform,$UI_WF_PROP_PLAY_CURSOR,0,$play_pos)
$play_pos2 := get_event_par($EVENT_ID,$EVENT_PAR_PLAY_POS)
set_ui_wf_property($Waveform2,$UI_WF_PROP_PLAY_CURSOR,0,$play_pos2)
wait (10000)
end while
end on
Last edited: