Interpolation

public struct Interpolation : Intervallic

Interpolation between two Tempo values.

  • Undocumented

    Declaration

    Swift

    public typealias Metric = Fraction
  • Start tempo.

    Declaration

    Swift

    public let start: Tempo
  • end

    End tempo.

    Declaration

    Swift

    public let end: Tempo
  • Metrical duration.

    Declaration

    Swift

    public let length: Fraction
  • Easing of Interpolation.

    Declaration

    Swift

    public let easing: Easing
  • 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 of metricalOffset.

  • An ordered, contiguous collection of Tempo.Interpolation.Fragments indexed by their fractional offset.

    Declaration

    Swift

    typealias Collection = ContiguousSegmentCollection<Tempo.Interpolation>