Use SparseArray for startOnTicks in MidiView