Class ArbitraryGrid
Grid where points in time are distributed arbitrarily according to provided collection
of times.
Inheritance
ArbitraryGrid
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
ArbitraryGrid(IEnumerable<ITimeSpan>)
Initializes a new instance of the
ArbitraryGrid with the specified
collection of times.
Declaration
public ArbitraryGrid(IEnumerable<ITimeSpan> times)
Parameters
Exceptions
Properties
Times
Times of the current grid.
Declaration
public IEnumerable<ITimeSpan> Times { get; }
Property Value
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
Implements