Looking for a way to find note duration, would like to write something like:
on note
ignore_event ($EVENT_ID)
{If note duration is so long then fire a keyswitch}
if (%NOTE_DURATION[$EVENT_NOTE]>1000)
{do keyswitch}
play_note(24,127,0,3)
{wait for ks to take effect}
wait(100)
{now play original note}
play note($EVENT_NOTE,$EVENT_VELOCITY,0,-1)
end if
end on
(above numbers are fudged)
Baically I want to write a script that looks at an upcoming notes duration to figure out what keyswitch to use (not based on a previous events).
-- Bob
on note
ignore_event ($EVENT_ID)
{If note duration is so long then fire a keyswitch}
if (%NOTE_DURATION[$EVENT_NOTE]>1000)
{do keyswitch}
play_note(24,127,0,3)
{wait for ks to take effect}
wait(100)
{now play original note}
play note($EVENT_NOTE,$EVENT_VELOCITY,0,-1)
end if
end on
(above numbers are fudged)
Baically I want to write a script that looks at an upcoming notes duration to figure out what keyswitch to use (not based on a previous events).
-- Bob