NEED SOME HELP ON "sendeMIDI"

Heyyy bro! Now the code content is a joystick to control the ableton through the hairless bridge connection. I also want to add 12 buttons to control the midi note in an octave, but I don’t know how to change and increase the button information in this code, and it can also Transmit midi information through hairless (hairless is a serial to midi communication)