Sort events by startBeat and compute startBeat/endBeat from time tuples.
Array of events to process (mutated in place).
Sort events by startBeat and compute startBeat/endBeat from time tuples.