Cleaned up read_tracks() and moved the code into MidiFile.__init__().