|
From: Andrew C <cou...@gm...> - 2017-05-29 06:35:58
|
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 This produces: [ScriptVM] -2147483648 gig::Engine: No Note object for triggering new voices! On Mon, May 29, 2017 at 7:28 AM, Andrew C <cou...@gm...> wrote: > $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 < > sch...@li...> 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 >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel >> > > |