Class TicksPerQuarterNoteTimeDivision
Time division that represents number of delta-time "ticks" which make up a quarter-note.
Inheritance
TicksPerQuarterNoteTimeDivision
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class TicksPerQuarterNoteTimeDivision : TimeDivision
Constructors
TicksPerQuarterNoteTimeDivision()
Declaration
public TicksPerQuarterNoteTimeDivision()
TicksPerQuarterNoteTimeDivision(short)
Declaration
public TicksPerQuarterNoteTimeDivision(short ticksPerQuarterNote)
Parameters
Type |
Name |
Description |
short |
ticksPerQuarterNote |
Number of ticks which make up a quarter-note. |
Exceptions
Fields
DefaultTicksPerQuarterNote
Default number of ticks which make up a quarter-note.
Declaration
public const short DefaultTicksPerQuarterNote = 96
Field Value
Properties
TicksPerQuarterNote
Gets or sets number of ticks which make up a quarter-note.
Declaration
public short TicksPerQuarterNote { 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 ==(TicksPerQuarterNoteTimeDivision, TicksPerQuarterNoteTimeDivision)
Declaration
public static bool operator ==(TicksPerQuarterNoteTimeDivision timeDivision1, TicksPerQuarterNoteTimeDivision timeDivision2)
Parameters
Returns
Type |
Description |
bool |
true if the time divisions are equal, false otherwise. |
operator !=(TicksPerQuarterNoteTimeDivision, TicksPerQuarterNoteTimeDivision)
Declaration
public static bool operator !=(TicksPerQuarterNoteTimeDivision timeDivision1, TicksPerQuarterNoteTimeDivision timeDivision2)
Parameters
Returns
Type |
Description |
bool |
false if the time divisions are equal, true otherwise. |