MIDI decoder sketch

Hi Nick,

Sorry new to this stuff, my question maybe way off topic so I am sorry if it is irritating.
I was wondering if your program decodes incoming midi streams only?
My interest is in decoding a midi file from an SD card and playing it back through a Synth.
Can I use all or part of your program to tackle this problem? I already have some very good midi code, but as it is far from working, I need to learn more and your code may help.
The video above is very impressive, great seeing a program in "in action". Very clever.

Cheers, Rob