-
A, la.
Declaration
Swift
case a
-
B, si.
Declaration
Swift
case b
-
C, do.
Declaration
Swift
case c
-
D, re.
Declaration
Swift
case d
-
E, mi.
Declaration
Swift
case e
-
F, fa.
Declaration
Swift
case f
-
G, sol.
Declaration
Swift
case g
-
Amount of steps from c
Declaration
Swift
public var steps: Int { get }
-
Default pitch class for a given
LetterName
.Declaration
Swift
public var pitchClass: Double { get }
-
Creates a
LetterName
with the amount of diatonic steps fromc
.Declaration
Swift
public init(steps: Int)
-
Creates a
LetterName
with a givenstring
value. Uppercase and lowercase values are accepted here.Declaration
Swift
public init?(string: String)
-
Declaration
Swift
public func displaced(by steps: Int) -> LetterName
Return Value
The
LetterName
value displaced by the given amount ofsteps
.
-
Todo
Refactor out intoCircularEnum
Declaration
Swift
public var predecessor: LetterName { get }
Return Value
The next-lower
LetterName
value. -
Todo
Refactor out intoCircularEnum
Declaration
Swift
public var successor: LetterName { get }
Return Value
The next-higher
LetterName
value.