MIDI decoder sketch

Well, so they say, but I found SoftwareSerial to be a bit sluggish. You could change:

NewSoftSerial midi (2, 3);  // Rx, Tx

to:

SoftwareSerial midi (2, 3);  // Rx, Tx