Search Results for

    Show / Hide Table of Contents

    Class ArbitraryGrid

    Grid where points in time are distributed arbitrarily according to provided collection of times.
    Inheritance
    object
    ArbitraryGrid
    Implements
    IGrid
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Interaction
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class ArbitraryGrid : IGrid

    Constructors

    ArbitraryGrid(params ITimeSpan[])

    Initializes a new instance of the ArbitraryGrid with the specified collection of times.
    Declaration
    public ArbitraryGrid(params ITimeSpan[] times)
    Parameters
    Type Name Description
    ITimeSpan[] times Grid's times.
    Exceptions
    Type Condition
    ArgumentNullException times is null.
    ArgumentException times contains null.

    ArbitraryGrid(IEnumerable<ITimeSpan>)

    Initializes a new instance of the ArbitraryGrid with the specified collection of times.
    Declaration
    public ArbitraryGrid(IEnumerable<ITimeSpan> times)
    Parameters
    Type Name Description
    IEnumerable<ITimeSpan> times Grid's times.
    Exceptions
    Type Condition
    ArgumentNullException times is null.
    ArgumentException times contains null.

    Properties

    Times

    Times of the current grid.
    Declaration
    public IEnumerable<ITimeSpan> Times { get; }
    Property Value
    Type Description
    IEnumerable<ITimeSpan>

    Methods

    GetTimes(TempoMap)

    Gets points in time of the current grid.
    Declaration
    public IEnumerable<long> GetTimes(TempoMap tempoMap)
    Parameters
    Type Name Description
    TempoMap tempoMap Tempo map used to get grid's times.
    Returns
    Type Description
    IEnumerable<long> Collection of points in time of the current grid.
    Exceptions
    Type Condition
    ArgumentNullException tempoMap is null.

    Implements

    IGrid
    In this article
    Back to top 2024 / Generated by DocFX