-
Undocumented
Declaration
Swift
public typealias Metric = Fraction
-
Concrete duration of
Interpolation
, in seconds.Declaration
Swift
public var duration: Double { get }
-
Declaration
Swift
public func tempo(at offset: Fraction) -> Tempo
Return Value
The effective tempo at the given metrical
offset
. -
Todo
Change Double -> Seconds
Declaration
Swift
public func secondsOffset(for metricalOffset: Fraction) -> Double
Return Value
The concrete offset in seconds of the given symbolic
Duration
offset
. If the easing type is .linear, this method gives an exact answer; otherwise, it uses an approximation method with complexity linear in the magnitude ofmetricalOffset
.
-
A fragment of a
See moreTempo.Interpolation
.Declaration
Swift
public struct Fragment
-
Declaration
Swift
public func fragment(in range: Range<Fraction>) -> Fragment
Return Value
a
Tempo.Interpolation.Fragment
in the givenrange
.
-
An ordered, contiguous collection of
Tempo.Interpolation.Fragments
indexed by their fractional offset.Declaration
Swift
typealias Collection = ContiguousSegmentCollection<Tempo.Interpolation>