polypx
弾
Hi Guys,
Trying to solve a problem in which I want to delay various groups by different amounts.
Due to the serial nature of the on_note callback, if I do this:
I can successfully delay the second group, but the second group is always delayed by the wait used for the first group. ie. I can't delay the first group without delaying the second.
Can anyone think of a workaround that would allow me to delay groups independently of one another?
cheers
Dan
Trying to solve a problem in which I want to delay various groups by different amounts.
Due to the serial nature of the on_note callback, if I do this:
Code:
on init
message("")
make_perfview
declare ui_knob $Delay1 (1, 1000, 1)
declare ui_knob $Delay2 (1, 1000, 1)
make_persistent ($Delay1)
make_persistent ($Delay2)
set_knob_unit ($Delay1,$KNOB_UNIT_MS)
set_knob_unit ($Delay2,$KNOB_UNIT_MS)
end on
on note
ignore_event($EVENT_ID)
disallow_group($ALL_GROUPS)
allow_group(0)
wait ($Delay1 * 1000)
play_note($EVENT_NOTE,$EVENT_VELOCITY,0,1000)
disallow_group($ALL_GROUPS)
allow_group(1)
wait ($Delay2 * 1000)
play_note($EVENT_NOTE,$EVENT_VELOCITY,0,1000)
disallow_group($ALL_GROUPS)
end on
I can successfully delay the second group, but the second group is always delayed by the wait used for the first group. ie. I can't delay the first group without delaying the second.
Can anyone think of a workaround that would allow me to delay groups independently of one another?
cheers
Dan