On Monday, May 29, 2017 07:35:50 Andrew C wrote:
> Actually, what am I doing wrong here?
> 
> on note
>   declare $foo
> 
>   ignore_event($EVENT_ID)
>   $foo := play_note($EVENT_NOTE, $EVENT_VELOCITY, 0, -1)
>   message($foo)
> end on

The difference is the -1 argument passed by you:

http://doc.linuxsampler.org/Instrument_Scripts/NKSP_Language/Reference/play_note_function/

"-1: The note will be stopped when the event handler's note stops"

You already stopped the note, to which you wanted the new note to stick to. So 
from my perspective the behavior you get is the logical consequence. Probably 
the precise result value of play_note() should deliberately be zero in this 
case instead, but except of that the behavior seems to be correct to me.

Did you see some KSP code which expects a different behavior here?

CU
Christian

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to