HISE Logo Forum
    • Categories
    • Register
    • Login

    Arp note to high / low

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 101 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      When I use the arpeggiator and the note is outside the range of 0-127, I get the following error message via the console: “ArpSynthGrp1:! Note number must be between 0 and 127”.

      Is there a way to retrieve this message and communicate it to the user?

      Thank you very much
      Oli

      bendursoB 1 Reply Last reply Reply Quote 0
      • bendursoB
        bendurso @Oli Ullmann
        last edited by

        @Oli-Ullmann I think you could make something like this inside onNoteOn()

        function onNoteOn()
        {
        	var note = Message.getNoteNumber();
        	    
        	    if (note < 0 || note > 127)
        	    {
        	        Engine.showMessageBox("Invalid Note", "Note number must be between 0 and 127.", 0);
        	    }
        }
        

        For some reason, getNoteNumber only shows me up to 120, but maybe it's because of my keyboard.

        Oli UllmannO 1 Reply Last reply Reply Quote 1
        • Oli UllmannO
          Oli Ullmann @bendurso
          last edited by

          @bendurso Oh yes, of course! Simple solution! Thank you! :-)

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

          39

          Online

          1.8k

          Users

          12.1k

          Topics

          105.0k

          Posts