-
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
LetterNamewith the amount of diatonic steps fromc.Declaration
Swift
public init(steps: Int) -
Creates a
LetterNamewith a givenstringvalue. Uppercase and lowercase values are accepted here.Declaration
Swift
public init?(string: String)
-
Declaration
Swift
public func displaced(by steps: Int) -> LetterNameReturn Value
The
LetterNamevalue displaced by the given amount ofsteps.
-
Todo
Refactor out intoCircularEnumDeclaration
Swift
public var predecessor: LetterName { get }Return Value
The next-lower
LetterNamevalue. -
Todo
Refactor out intoCircularEnumDeclaration
Swift
public var successor: LetterName { get }Return Value
The next-higher
LetterNamevalue.
Install in Dash
LetterName Enumeration Reference