HISE Logo Forum
    • Categories
    • Register
    • Login

    Disable notes on keyboard

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 245 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.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Sawer
        last edited by d.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

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

        S 1 Reply Last reply Reply Quote 0
        • S
          Sawer @d.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()
            

            ?

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.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.

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

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

                @d-healey Thanks.

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

                25

                Online

                1.8k

                Users

                12.0k

                Topics

                104.0k

                Posts