StaffModel
public struct StaffModel : VerticalPlotModel
Todo
Inject transposition as instance property.-
Todo
In Swift 4, there are associated type constraints. These typealiases should be inferrable by the relationship betwenStaffModel
andClef
.Declaration
Swift
public typealias Point = StaffPointModel
-
Undocumented
Declaration
Swift
public typealias VerticalCoordinate = StaffSlot
-
Undocumented
Declaration
Swift
public typealias HorizontalCoordinate = Double
-
Declaration
Swift
public typealias Entity = SpelledPitch
-
Declaration
Swift
public let verticalAxis: Clef
-
Undocumented
Declaration
Swift
public let horizontalAxis: DefaultAxis<Double>
-
Declaration
Swift
public let points: [Double : [StaffPointModel]]
-
Createss a
StaffModel
with the givenclef
and the givenpoints
.Declaration
Swift
public init(clef: Clef = Clef(.treble), points: [Double: [StaffPointModel]])