This is a sketch of an ear training program.
Please read the initial comment in eartraining.py for further detail.

The program playsmf.exe is from Div's MIDI Utilities:
http://public.sreal.com:8000/~div/midi-utilities/
It's included here for the convenience of windows user. 
If you're not using Windows, you can safely delete it.