T1000
T1000

Reputation: 423

How to merge all Midi Events from tracks?

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

Answers (1)

CL.
CL.

Reputation: 180070

NAudio automatically merges the tracks when you set the MidiFileType property of the MidiEventCollection to zero.

Upvotes: 2

Related Questions