This tool converts MIDI (Musical Instrument Digital Interface) to MML (Music Macro Language)
It works best with monophonic midi files. I recommend using type 0 midi files for this purpose.

Made for the Netduino Speaker-driver

MIDI file:
 
 

This tool uses the PHP MIDI Parser made by fluxus