public virtual void Export(ref long absoluteTime, BinaryWriter writer) { if (this.absoluteTime < absoluteTime) { throw new FormatException("Can't export unsorted MIDI events"); } MidiEvent.WriteVarInt(writer, (int)(this.absoluteTime - absoluteTime)); absoluteTime = this.absoluteTime; int num = (int)this.commandCode; if (this.commandCode != MidiCommandCode.MetaEvent) { num += this.channel - 1; } writer.Write((byte)num); }
public override void Export(ref long absoluteTime, BinaryWriter writer) { base.Export(ref absoluteTime, writer); writer.Write((byte)this.metaEvent); MidiEvent.WriteVarInt(writer, this.metaDataLength); }