Open this program in the mbed Compiler, where you can edit it and compile it for your hardware.
Download this program as .zip file.
mbeduino MIDI Shield test
I ported SparkFun MIDI Shield test code into meduino. Regarding mbeduino, refer to http://mbed.org/users/okini3939/notebook/mbeduino/