I saw the following:
"
on note
disallow_group($ALL_GROUPS) { turn all groups off }
allow_group(0) { turn first group on }
ignore_event($EVENT_ID) { inhibit triggering note from being played }
play_note($EVENT_NOTE, $EVENT_VELOCITY, 0, -1) { replay note }
end note
"
It's just a fragment, but yes, it seems like play_note can still
trigger the note and follow the 'note_on/note_off' of the note handler
itself.
On Mon, May 29, 2017 at 11:30 AM, Christian Schoenebeck <
schoeneb...@linuxsampler.org> wrote:
> 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
>
------------------------------------------------------------------------------
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