Synth.addNote bug on C++
-
Hi @Christoph-Hart
Adding Synth.addNote on a HardcodedScriptProcessor shows this runtime error.tried several ways to confirm is not me, nor typo or whatever... but no
/** A hardcoded version of the colour script. */ class glitchMidiProcessor : public hise::HardcodedScriptProcessor { public: /** Set the name and default ID of the processor. */ SET_PROCESSOR_NAME("sineGlitch", "sineGlitch", "sineGlitch"); glitchMidiProcessor(ModulatorSynth* owner, float index) : HardcodedScriptProcessor(owner->getMainController(), "sineGlitch", owner) { this->index = index; } void onNoteOn() override { Message.ignoreEvent(true); Synth.addNoteOn(1, 35, 127, 0); }