Forum

    • Register
    • Login
    • Search
    • Categories

    Synth.addNote bug on C++

    C++ Development
    1
    1
    47
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hisefilo
      hisefilo last edited by

      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);
      
          }
          
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      18
      Online

      1.2k
      Users

      7.0k
      Topics

      64.7k
      Posts