Added MIDI file generator prototype.
Added some helper code to generate chords.