Beispiel #1
0
 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);
 }
Beispiel #2
0
 public MIDITrack()
 {
     MidiEvents        = new List <MIDIEvent>();
     MidiMarkers       = new List <MIDIMarker>();
     CurrentEventIndex = 0;
     LastCommand       = 0;
     AbsTime           = 0;
     Info          = new MIDITrackInfo();
     CurrentMarker = null;
 }