Search Results for

    Show / Hide Table of Contents

    Class TicksPerQuarterNoteTimeDivision

    Time division that represents number of delta-time "ticks" which make up a quarter-note.
    Inheritance
    object
    TimeDivision
    TicksPerQuarterNoteTimeDivision
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class TicksPerQuarterNoteTimeDivision : TimeDivision

    Constructors

    TicksPerQuarterNoteTimeDivision()

    Initializes a new instance of the TicksPerQuarterNoteTimeDivision.
    Declaration
    public TicksPerQuarterNoteTimeDivision()

    TicksPerQuarterNoteTimeDivision(short)

    Initializes a new instance of the TicksPerQuarterNoteTimeDivision with the specified ticks number per a quarter-note.
    Declaration
    public TicksPerQuarterNoteTimeDivision(short ticksPerQuarterNote)
    Parameters
    Type Name Description
    short ticksPerQuarterNote Number of ticks which make up a quarter-note.
    Exceptions
    Type Condition
    ArgumentOutOfRangeException ticksPerQuarterNote is negative.

    Fields

    DefaultTicksPerQuarterNote

    Default number of ticks which make up a quarter-note.
    Declaration
    public const short DefaultTicksPerQuarterNote = 96
    Field Value
    Type Description
    short

    Properties

    TicksPerQuarterNote

    Gets or sets number of ticks which make up a quarter-note.
    Declaration
    public short TicksPerQuarterNote { get; }
    Property Value
    Type Description
    short

    Methods

    Clone()

    Clones time division by creating a copy of it.
    Declaration
    public override TimeDivision Clone()
    Returns
    Type Description
    TimeDivision Copy of the time division.
    Overrides
    TimeDivision.Clone()

    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
    object.Equals(object)

    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
    object.GetHashCode()

    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
    object.ToString()

    Operators

    operator ==(TicksPerQuarterNoteTimeDivision, TicksPerQuarterNoteTimeDivision)

    Determines if two TicksPerQuarterNoteTimeDivision objects are equal.
    Declaration
    public static bool operator ==(TicksPerQuarterNoteTimeDivision timeDivision1, TicksPerQuarterNoteTimeDivision timeDivision2)
    Parameters
    Type Name Description
    TicksPerQuarterNoteTimeDivision timeDivision1 The first TicksPerQuarterNoteTimeDivision to compare.
    TicksPerQuarterNoteTimeDivision timeDivision2 The second TicksPerQuarterNoteTimeDivision to compare.
    Returns
    Type Description
    bool true if the time divisions are equal, false otherwise.

    operator !=(TicksPerQuarterNoteTimeDivision, TicksPerQuarterNoteTimeDivision)

    Determines if two TicksPerQuarterNoteTimeDivision objects are not equal.
    Declaration
    public static bool operator !=(TicksPerQuarterNoteTimeDivision timeDivision1, TicksPerQuarterNoteTimeDivision timeDivision2)
    Parameters
    Type Name Description
    TicksPerQuarterNoteTimeDivision timeDivision1 The first TicksPerQuarterNoteTimeDivision to compare.
    TicksPerQuarterNoteTimeDivision timeDivision2 The second TicksPerQuarterNoteTimeDivision to compare.
    Returns
    Type Description
    bool false if the time divisions are equal, true otherwise.
    In this article
    Back to top 2024 / Generated by DocFX