Class SmpteTimeDivision
Time division that represents subdivisions of a second, in a way consistent with
SMPTE and MIDI time code.
Inheritance
SmpteTimeDivision
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class SmpteTimeDivision : TimeDivision
Constructors
Initializes a new instance of the
SmpteTimeDivision with the
specified format (frame rate) and resolution.
Declaration
public SmpteTimeDivision(SmpteFormat format, byte resolution)
Parameters
Type |
Name |
Description |
SmpteFormat |
format |
SMPTE format representing the number of frames per second. |
byte |
resolution |
Resolution within a frame. |
Exceptions
Properties
Gets SMPTE format (frame rate).
Declaration
public SmpteFormat Format { get; }
Property Value
Resolution
Gets resolution within a frame.
Declaration
public byte Resolution { get; }
Property Value
Methods
Clone()
Clones time division by creating a copy of it.
Declaration
public override TimeDivision Clone()
Returns
Overrides
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object. |
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false . |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer hash code. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object. |
Overrides
Operators
operator ==(SmpteTimeDivision, SmpteTimeDivision)
Declaration
public static bool operator ==(SmpteTimeDivision timeDivision1, SmpteTimeDivision timeDivision2)
Parameters
Returns
Type |
Description |
bool |
true if the time divisions are equal, false otherwise. |
operator !=(SmpteTimeDivision, SmpteTimeDivision)
Declaration
public static bool operator !=(SmpteTimeDivision timeDivision1, SmpteTimeDivision timeDivision2)
Parameters
Returns
Type |
Description |
bool |
false if the time divisions are equal, true otherwise. |