This sketch requires 47effects’ Arduino MIDI library here. I’ve tested it with version 4.1.
More stuff to come, the code is here for now.
This project was made and tested with the Sparkfun MIDI Shield, but should be straightforward to adapt to other MIDI board designs.
Made with Arduino 1.0.5.