-
The
Pitch.Spellingdefining aSpelledPitch.Declaration
Swift
public let spelling: Pitch.Spelling -
The
octavedefining aSpelledPitchDeclaration
Swift
public let octave: Int
-
The
c naturalnearest 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
Pitchvalue represented by thisSpelledPitch.
-
Declaration
Swift
public func displaced(by interval: OrderedIntervalDescriptor) -> SpelledPitchReturn Value
A
SpelledPitchwhich is displaced by the giveninterval. -
Declaration
Swift
public func displaced(by interval: CompoundIntervalDescriptor) -> SpelledPitchReturn Value
A
SpelledPitchwhich is displaced by the giveninterval.
-
Note
In the case that both values are in the same octave,
trueis returned if the spelling of theSpelledPitchvalue on the left is less than that of theSpelledPitchon 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) -> BoolReturn Value
trueif thepitchvalue of theSpelledPitchvalue on the left is less than that of theSpelledPitchvalue on the right. Otherwise,false.
Install in Dash
SpelledPitch Structure Reference