Forum
    • Categories
    • Register
    • Login

    Whats wrong with AddNoteOff now?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 216 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
      • David HealeyD
        David Healey
        last edited by David Healey

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

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @David 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

          22

          Online

          2.1k

          Users

          13.1k

          Topics

          113.3k

          Posts