コード例 #1
0
ファイル: MIDISection.cs プロジェクト: yuritkach/MidiStyler
 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);
 }
コード例 #2
0
ファイル: MIDISection.cs プロジェクト: yuritkach/MidiStyler
 public MIDITrack()
 {
     MidiEvents        = new List <MIDIEvent>();
     MidiMarkers       = new List <MIDIMarker>();
     CurrentEventIndex = 0;
     LastCommand       = 0;
     AbsTime           = 0;
     Info          = new MIDITrackInfo();
     CurrentMarker = null;
 }