|
From: Andrew C <cou...@gm...> - 2017-05-24 14:30:23
|
Thanks for the info there, Christian. Having a pretty good time exploring
NKSP right now.
Before I try the legato, I'm trying to give an alternation script a go.
One question, how does "ignore_event" work? I RTFM and it says it can be
used to ignore MIDI note-on and note-off commands before they're triggered.
I would imagine this *should* make the current note in $EVENT_ID not be
played, but when I click on the piano in gigedit/jsampler, the note plays
anyway.
note_off($EVENT_ID) in a "on note" block causes linuxsampler to segfault
too. :\
Here's my code for the alternation script so far:
on init
declare polyphonic $alt
end on
on note
ignore_event($EVENT_ID)
message("Alternation number is: " & $alt)
select $alt
case 0
play_note($EVENT_NOTE, $EVENT_VELOCITY)
message("upbow")
$alt := 1
case 1
play_note($EVENT_NOTE+36, $EVENT_VELOCITY)
message("downbow")
$alt := 0
end select
end on
|