Can't get Synth.noteOffByEventId() to work
-
I have spent a couple of hours trying to send note off values based on NoteOnEventId but I can't get it to work.
I have a set up in "onNoteOn" that stores the EventId in an array, and in "onNoteOff" I've set Message.ignoreEvent(true), I want to access the array later to send note off values based on the NoteOnEventId in the array but I always get the message that the ID is missing, but it isn't. What am I doing wrong? -
@ulrik said in Can't get Synth.noteOffByEventId() to work:
res the EventId in an array, and in "onNoteOff" I've set Message.ignoreEvent(true), I want to access the array later to send note off values based on the NoteOnEventId in the array but I always get the messa
I'm guessing you need to make the event artificial in the onNote callback.
-
Yes Message.makeArtificial is your friend here. It‘s a bit more complicated than you would expect, but here is a explanation:
https://forum.hise.audio/topic/103/note-off-by-id-doesn-t-work-on-same-note/7
-
@d-healey Thank you David, I will try that!
-
@Christoph-Hart Thank you for pointing me in the right direction, I will study this!
-
Thank you Christoph and David, it's working now! :)