Search Results for

    Show / Hide Table of Contents

    Class SmpteTimeDivision

    Time division that represents subdivisions of a second, in a way consistent with SMPTE and MIDI time code.
    Inheritance
    object
    TimeDivision
    SmpteTimeDivision
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class SmpteTimeDivision : TimeDivision

    Constructors

    SmpteTimeDivision(SmpteFormat, byte)

    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
    Type Condition
    InvalidEnumArgumentException format specified an invalid value.

    Properties

    Format

    Gets SMPTE format (frame rate).
    Declaration
    public SmpteFormat Format { get; }
    Property Value
    Type Description
    SmpteFormat

    Resolution

    Gets resolution within a frame.
    Declaration
    public byte Resolution { get; }
    Property Value
    Type Description
    byte

    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 ==(SmpteTimeDivision, SmpteTimeDivision)

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

    operator !=(SmpteTimeDivision, SmpteTimeDivision)

    Determines if two SmpteTimeDivision objects are not equal.
    Declaration
    public static bool operator !=(SmpteTimeDivision timeDivision1, SmpteTimeDivision timeDivision2)
    Parameters
    Type Name Description
    SmpteTimeDivision timeDivision1 The first SmpteTimeDivision to compare.
    SmpteTimeDivision timeDivision2 The second SmpteTimeDivision 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