Moved _merge_tracks() into MidiFile and made it a property.