maybe CD74HC4067 8 channel analog switches.
It is always a good idea to write a pretty detailed description of your project which tells
the microcontroller-type you are using
and a functional description of what you want to do
cheap midi-controller can still be very different things:
do you want to:
- play musical notes
- control lights
- send midi-signals at a low speed to change software-settings
The final purpose has an influence on the solutions that are suitable
Same thing with the interface very classical midi-DIN-plug or USB-midi?
best regards Stefan