Builder

public class Builder

Undocumented

  • Creates Builder prepared to construct a Model.

    Declaration

    Swift

    public init()
  • Add the given tempo at the given offset, and whether or not it shall be prepared to interpolate to the next given tempo.

    Declaration

    Swift

    @discardableResult
    public func addTempo(
        _ tempo: Tempo,
        at offset: Fraction? = nil,
        easing: Tempo.Interpolation.Easing? = nil
    ) -> Model.Builder
  • Add the given meter.

    Declaration

    Swift

    @discardableResult
    public func addMeter(_ meter: Meter) -> Model.Builder
  • Declaration

    Swift

    public func build() -> Model

    Return Value

    A completed Model for your enjoyment.