TempoInterpolationCollectionBuilder
public final class TempoInterpolationCollectionBuilder
A class which encapsulates the stateful incremental building process of
a Tempo.Interpolation.Collection.
-
The end result of the building process (
Tempo.Interpolation.Collection).Declaration
Swift
public typealias Product = Tempo.Interpolation.Collection
-
The intermediate storage of
Tempo.Interpolation.Fragmentvalues indexed by theirFractionoffsets.Declaration
Swift
public var intermediate: OrderedDictionary<Fraction, Tempo.Interpolation>
-
Create an empty
Tempo.Interpolation.Collection.Builderready to construct a nice littleTempo.Interpolation.Collectionfor you.Declaration
Swift
public init()
-
Add the given
interpolationto the accumulating storage ofTempo.Interpolation.Fragmentvalues.Declaration
Swift
@discardableResult public func add(_ interpolation: Tempo.Interpolation) -> TempoInterpolationCollectionBuilderReturn Value
Self
-
Add the given
tempoat the given metricaloffset, along with the information whether the giventempointerpolates into the next. -
Declaration
Swift
public func build() -> Tempo.Interpolation.CollectionReturn Value
The completed
Tempo.Interpolation.Collection.
View on GitHub
Install in Dash
TempoInterpolationCollectionBuilder Class Reference