BeatContext

public struct BeatContext : Equatable

Information about a given beat within a Meter.

  • Declaration

    Swift

    public var metricalOffset: Duration { get }

    Return Value

    Metrical offset from start of a Meter.Structure.

  • Meter containing BeatContext.

    Declaration

    Swift

    public let meterContext: Meter.Context
  • Metrical offset of beat within Meter.

    Declaration

    Swift

    public let offset: Duration
  • Creates a BeatContext with the given subdivision and position.

    Declaration

    Swift

    public init(
        meterContext: Meter.Context,
        offset: Duration,
        interpolation: Tempo.Interpolation
    )