HISE Logo Forum
    • Categories
    • Register
    • Login

    Synth.addNote bug on C++

    Scheduled Pinned Locked Moved C++ Development
    1 Posts 1 Posters 105 Views
    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.
    • hisefiloH
      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

      24

      Online

      1.7k

      Users

      11.7k

      Topics

      102.0k

      Posts