Reputation: 423
Some midi files have more than 1 track.
How do I merge the events from these tracks (in order of StartTime) into a single array/list, using the NAudio library?
I want to capture all NoteOn, NoteOff, and DamperPedal events in ascending order (StartTime).
Upvotes: 0
Views: 211
Reputation: 180070
NAudio automatically merges the tracks when you set the MidiFileType
property of the MidiEventCollection
to zero.
Upvotes: 2