I only gave Pickit2 as an example (it happened to be connected). I appreciate that you don't want to reinvent the wheel.

Found this on google http://portmedia.sourceforge.net/

Probably shouldn't suggest this but there are other Pic device compilers that do have examples of Midi.