$foo := play_note($EVENT_NOTE)
Damn, I didn't see this in the NKSP docs and I didn't have the programming
chops to infer it. My bad. >.<
I was trying to ignore_event and then just call 'play_note' without making
it an object.
Thanks for clearing this up, Christian.
On Sun, May 28, 2017 at 12:14 AM, Christian Schoenebeck <
schoeneb...@linuxsampler.org> wrote:
> On Saturday, May 27, 2017 20:53:42 Andrew C wrote:
> > I was looking through other KSP scripts and one feature I noticed is that
> > you can use ignore_event($EVENT_ID), but still use play_note to generate
> > notes as needed (Currently if you use ignore_event and call play_note,
> > play_note has no Note object).
> >
> > You can also access the $EVENT_NOTE and $EVENT_VELOCITY values too.
> >
> > Could this be implemented into NKSP?
>
> Hmm, I just tested this:
>
> on note
> declare $foo
>
> ignore_event($EVENT_ID)
> $foo := play_note($EVENT_NOTE)
> message($foo)
> end on
>
> Note was played, and play_note() also returns a valid note ID.
>
> 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