Fragment

public struct Fragment

A fragment of a Tempo.Interpolation.

  • Declaration

    Swift

    public var length: Fraction { get }

    Return Value

    The length of this Tempo.Interpolation.Fragment value.

  • Create a Tempo.Interpolation.Fragment with the given interpolation in the given range.

    Declaration

    Swift

    public init(_ interpolation: Tempo.Interpolation, in range: Range<Fraction>)
  • Create a Tempo.Interpolation.Fragment which fills the entire length of the given interpolation.

    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.