Help- using an arduino to make a midi controller

Can't help you with the midi table, as you know more about midi than I (care to).

The midiCC function, though, takes 3 arguments. The first is reference, in the function, using the name command. The second is referenced using the name value1. The third is referenced using the name value2.

You call the function this way:
midiCC(0xB0, 12, midix); // sends midi control change for touch pad X axis
midiCC(0xB0, 13, midiy); // sends midi control change for touch pad y axis
So, the function will write the 3 values (0xB0, 12, and midix or 0xB0, 13, and midiy) to the serial port, where the midi-controller is presumably listening.