onNoteOn() - Illegal operation in audio thread: String creation (in HISE plugin only!?)
-
@d-healey Alright. Thank you. I'll give it a shot.
-
I am getting nowhere with this. It is like a f'ing Rubik's cube 🥴
Is anyone of you guys available 1-on-1 to help me with this? I'll compensate you fairly. I want to get this done asap and move on. -
so you need to get this bit of code into your seperate midi processor - the one you've identified.
arrayPos = noteTriggers.indexOf(Message.getNoteNumber()); if (arrayPos > -1) { Message.setNoteNumber(noteSources[arrayPos]); // yes so play its matching source note }else{ Message.ignoreEvent(true); // no ignore it.. };
so it wont know about noteSources, so you need a way to tell it - ahead of time when noteSources changes - or explicitly if its always the same.
so either:
declare noteSources in the midi processor init and populate it
or
make noteSources a global variable (not a great solution)
or
create a table in the MIDI processor that you can reference (and set) from your UI script -
Update: @Lindon saved the day (and a few more) by helping me today. I got the scripts separated. Massive thanks!