-
The measurable unit of a
Tempo.Interpolation
is aFraction
.Declaration
Swift
public typealias Metric = Fraction
-
The duration in seconds of the
Tempo.Interpolation
.Declaration
Swift
public var duration: Double { get }
-
The original
Tempo.Interpolation
.Declaration
Swift
public let base: Tempo.Interpolation
-
The range within the original
Tempo.Interpolation
of thisFragment
.Declaration
Swift
public let range: Range<Fraction>
-
Declaration
Swift
public subscript(range: Range<Fraction>) -> Tempo.Interpolation.Fragment { get }
Return Value
Interpolation.Fragment
in the givenrange
.
-
Declaration
Swift
public var length: Fraction { get }
Return Value
The length of this
Tempo.Interpolation.Fragment
value.
-
Creates a
Tempo.Interpolation.Fragment
which is equivalent to the givenwhole
Tempo.Interpolation
.Declaration
Swift
public init(whole: Tempo.Interpolation)
-
Declaration
Swift
public func fragment(in range: Range<Fraction>) -> Tempo.Interpolation.Fragment
Return Value
A fragment in the given
range
.
-
Create a
Tempo.Interpolation.Fragment
with the giveninterpolation
in the givenrange
.Declaration
Swift
public init(_ interpolation: Tempo.Interpolation, in range: Range<Fraction>)
-
Create a
Tempo.Interpolation.Fragment
which fills the entire length of the giveninterpolation
.Declaration
Swift
public init(_ interpolation: Tempo.Interpolation)
-
Declaration
Swift
public func secondsOffset(for offset: Fraction) -> Double
Return Value
The offset in seconds of the given metrical
offset
.