Improve copying for the MidiTrack struct