In the MIDI protocol itself, bank numbers are split into two 7-bit parts and transmitted as the value of two controllers, "Bank Select" and "Bank Select LSB": ... = new ShortMessage(ShortMessage.CONTROL_CHANGE, 0, 0, 1152 >> 7); // = 9 ... = new ShortMessage(ShortMessage.CONTROL_CHANGE, 0, 32, 1152 & 0x7f); // =...
Expanding on CL.'s answer, here is the sequence of events that is probably happening: You push a key on your MIDI keyboard which sends out a Note On message, with a Pitch of A0, and a velocity (the exact velocity may vary every time). Your code receives this and, since...