Merge multi-track MIDI sequence into a single track for further processing