HISE Logo Forum
    • Categories
    • Register
    • Login

    how to make midi controller turn on and off pads on GUI

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 199 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.
    • W
      WepaAudio
      last edited by

      I have pads playing notes ,the image turns on and of nicely when I click on the pad and also tigger the sound perfect, but when I hit the midi controller it sounds but the pad do not turn on & of , any help will be appreciated

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

        Pad = button, panel, or something else?

        In any case you need to check in the on note on callback if your desired key has been pressed and if it has been you enable the corresponding "pad".

        Usually a couple of arrays is all you need for the data. One for the component references and one for the corresponding notes. Then in the callback you get the index of the note from your notes array and use that to toggle the component.

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

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

        28

        Online

        1.7k

        Users

        11.8k

        Topics

        102.8k

        Posts