A class library for opening, parsing, and saving MIDI files.

Track.Events Property

Gets the collection of TrackEvent objects within the Track.

public TrackEventCollection Events {get;}

Property Value

A collection of TrackEvent objects within the Track.

Example

            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());
            		}
            	}
            }
            

See Also

Track Class | EF.SimpleMIDI Namespace