-
The
Pitch.Spelling
defining aSpelledPitch
.Declaration
Swift
public let spelling: Pitch.Spelling
-
The
octave
defining aSpelledPitch
Declaration
Swift
public let octave: Int
-
The
c natural
nearest to the middle of an 88-key piano.Declaration
Swift
public static var middleC: SpelledPitch { get }
-
Declaration
Swift
public var pitch: Pitch { get }
Return Value
The
Pitch
value represented by thisSpelledPitch
.
-
Declaration
Swift
public func displaced(by interval: OrderedIntervalDescriptor) -> SpelledPitch
Return Value
A
SpelledPitch
which is displaced by the giveninterval
. -
Declaration
Swift
public func displaced(by interval: CompoundIntervalDescriptor) -> SpelledPitch
Return Value
A
SpelledPitch
which is displaced by the giveninterval
.
-
Note
In the case that both values are in the same octave,
true
is returned if the spelling of theSpelledPitch
value on the left is less than that of theSpelledPitch
on the right. This manages extreme scenarios such as (c#, dbb), which should have a named interval of a double diminished second, not a double augmented seventh.Declaration
Swift
public static func < (lhs: SpelledPitch, rhs: SpelledPitch) -> Bool
Return Value
true
if thepitch
value of theSpelledPitch
value on the left is less than that of theSpelledPitch
value on the right. Otherwise,false
.