Class TempoEvent
Represents a MIDI tempo event
public class TempoEvent : MetaEvent, ICloneable
- Inheritance
-
TempoEvent
- Implements
- Inherited Members
Constructors
TempoEvent(BinaryReader, int)
Reads a new tempo event from a MIDI stream
public TempoEvent(BinaryReader br, int length)
Parameters
brBinaryReaderThe MIDI stream
lengthintthe data length
TempoEvent(int, long)
Creates a new tempo event with specified settings
public TempoEvent(int microsecondsPerQuarterNote, long absoluteTime)
Parameters
Properties
MicrosecondsPerQuarterNote
Microseconds per quarter note
public int MicrosecondsPerQuarterNote { get; set; }
Property Value
Tempo
Tempo
public double Tempo { get; set; }
Property Value
Methods
Clone()
Creates a deep clone of this MIDI event.
public override MidiEvent Clone()
Returns
Export(ref long, BinaryWriter)
Calls base class export first, then exports the data specific to this event MidiEvent.Export
public override void Export(ref long absoluteTime, BinaryWriter writer)
Parameters
absoluteTimelongwriterBinaryWriter
ToString()
Describes this tempo event
public override string ToString()
Returns
- string
String describing the tempo event