8 multiplexer midi controller

i have make a code but i have a fake button in the proggram that the hole time switch
i would like 3 analog multiplexers and 4 digital multiplexers but it doesn't work can someone help me the code is in the appendix

thanks Already

MIDI_Controller_v1-2.zip (5.33 KB)

Hey, Mr. Mechanic. My car doesn't work. Can you fix it?

Sure, what is the problem?

Oh, I couldn't tell you that, or I'd have to kill you.

If you can't tell us what the code actually does, and how that differs from what you want, AND post a schematic, you are going to have to fix the problems BY YOURSELF.

Tom123456789:
I have a fake button in the program that the hole time switch.

If a button that does not exist is switching, it is likely that your input pin does not have a pull-up or pull-down resistor. Add pull-up or pull-down resistors to each button input pin.