Class TimeSignatureEvent
Represents a MIDI time signature event
public class TimeSignatureEvent : MetaEvent, ICloneable
- Inheritance
-
TimeSignatureEvent
- Implements
- Inherited Members
Constructors
TimeSignatureEvent(BinaryReader, int)
Reads a new time signature event from a MIDI stream
public TimeSignatureEvent(BinaryReader br, int length)
Parameters
brBinaryReaderThe MIDI stream
lengthintThe data length
TimeSignatureEvent(long, int, int, int, int)
Creates a new TimeSignatureEvent
public TimeSignatureEvent(long absoluteTime, int numerator, int denominator, int ticksInMetronomeClick, int no32ndNotesInQuarterNote)
Parameters
absoluteTimelongTime at which to create this event
numeratorintNumerator
denominatorintDenominator
ticksInMetronomeClickintTicks in Metronome Click
no32ndNotesInQuarterNoteintNo of 32nd Notes in Quarter Click
Properties
Denominator
Denominator (Beat unit), stored as power-of-two exponent (dd), where denominator is 2^dd
public int Denominator { get; }
Property Value
No32ndNotesInQuarterNote
Number of 32nd notes in a quarter note
public int No32ndNotesInQuarterNote { get; }
Property Value
Numerator
Numerator (number of beats in a bar)
public int Numerator { get; }
Property Value
TicksInMetronomeClick
Ticks in a metronome click
public int TicksInMetronomeClick { get; }
Property Value
TimeSignature
The time signature
public string TimeSignature { get; }
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 time signature event
public override string ToString()
Returns
- string
A string describing this event