Gets the collection of TrackEvent objects within the Track.
A collection of TrackEvent objects within the Track.
EF.SimpleMIDI.MIDIFile mf;
mf = new EF.SimpleMIDI.MIDIFile(@"C:\WINNT\Media\CANYON.MID");
foreach (EF.SimpleMIDI.Chunk ch in mf.Chunks)
{
if (ch is EF.SimpleMIDI.Track)
{
EF.SimpleMIDI.Track trk = (EF.SimpleMIDI.Track) ch;
foreach (EF.SimpleMIDI.TrackEvent te in trk.Tracks)
{
Console.Write(te.GetType().ToString());
}
}
}