how to make midi controller turn on and off pads on GUI
-
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
-
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.