Forum
    • Categories
    • Register
    • Login

    Disable notes on keyboard

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 290 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.
    • S
      Sawer
      last edited by

      Hello everyone!
      Looking for a way to disable certain notes on the keyboard.
      I am aware that in the jSon editor I can choose how many keys can be in the keys, but I need a way disable while still maintaining the same graphics nature of the floating tile, maybe just colour the disabled notes differently like grey or something like that. Any help is appreciated.

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Sawer
        last edited by David Healey

        @Sawer Use an if statement in the on note on callback. If the incoming note is a match then ignore the event. And you can colour the keys however you like using Engine.setKeyColour();

        You might use this script as inspiration - https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/modules/NoteRangeFilter.js

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

        S 1 Reply Last reply Reply Quote 0
        • S
          Sawer @David Healey
          last edited by

          @d-healey Thanks. Will try that

          S 1 Reply Last reply Reply Quote 0
          • S
            Sawer @Sawer
            last edited by Sawer

            @d-healey
            How can I get the reference of all the midi notes on the keyboard. something like :

            const noteC1 = Keyboard.getNoteNumber(60);
            

            Is it

            message.getNoteNumber()
            

            ?

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @Sawer
              last edited by

              @Sawer

              How can I get the reference of all the midi notes on the keyboard. something like :

              Message.getNoteNumber() will give you the number of the incoming MIDI note inside the on note on and on note off callbacks.

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

              S 1 Reply Last reply Reply Quote 0
              • S
                Sawer @David Healey
                last edited by

                @d-healey Thanks.

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

                36

                Online

                2.1k

                Users

                13.0k

                Topics

                113.1k

                Posts