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

    Screen Shot 2021-03-22 at 10.04.00 AM.png

    /** 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);
    
        }
        
    

Log in to reply
 

7
Online

1.2k
Users

3.9k
Topics

34.1k
Posts