HISE Logo Forum
    • Categories
    • Register
    • Login

    Whats wrong with AddNoteOff now?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 187 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.
    • LindonL
      Lindon
      last edited by

      this does nothing...

      function onNoteOn()
      {
          for (odx=0;odx<keyNums.length;odx++)
          {
              Console.print("adding note off For:"+ keyNums[odx]);
              Synth.addNoteOff(1,keyNums[odx],2000);
          };
          keyNums = [];
          keyNums.push(Message.getNoteNumber());
      }
      

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by d.healey

        What's the point in the keyNums array? Like why is it being reset here?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by

          @d-healey KeyNums is a list of pressed keys--- in this code only one note - so what happens is this should play a first note and then when the next note is played it should stop note 1 and play note 2 - it doenst - it keeps playing everything....

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          19

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts