Rewrote ByteReader and MidiFile.read_track().