fix for overlapping MIDI events in piano roll