protected void ProcessMidiTrackInfo(ref MIDITrackInfo track) { track.Id = Common.GetUint(ref ByteBuff, ref currentOffset); if (track.Id != 0x4D54726B) //MTrk { throw new System.Exception("MIDI-File contains bad track signature"); } track.Length = Common.GetUint(ref ByteBuff, ref currentOffset); }
public MIDITrack() { MidiEvents = new List <MIDIEvent>(); MidiMarkers = new List <MIDIMarker>(); CurrentEventIndex = 0; LastCommand = 0; AbsTime = 0; Info = new MIDITrackInfo(); CurrentMarker = null; }