0

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).

CL.
  • 173,858
  • 17
  • 217
  • 259
T1000
  • 423
  • 9
  • 17

1 Answers1

2

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

CL.
  • 173,858
  • 17
  • 217
  • 259