Builder

public class Builder

Undocumented

  • Creates a StaffView.Builder ready to represent the given clef, with the given configuration.

    Declaration

    Swift

    public init(clef: Clef, configuration: StaffConfiguration)
  • Creates an internal representation of the given model with the given configuration.

    Declaration

    Swift

    public init(model: StaffModel, configuration: StaffConfiguration)
  • Starts staff lines at the given position.

    Declaration

    Swift

    public func startLines(at x: Double)
  • Stops staff lines at the given position.

    Declaration

    Swift

    public func stopLines(at x: Double)
  • Adds the amount ledger lines above and below at the given position.

    Declaration

    Swift

    public func addLedgerLines(at position: Double, above: Int, below: Int)
  • Creates a StaffView with the

    Declaration

    Swift

    public func build() -> StaffView