Pitch
struct Pitch : NoteNumberRepresentable
-
Things that can go wrong while applying a
See morePitch.Spelling
to aPitch
.Declaration
Swift
public enum Error : Swift.Error
-
All
Pitch.Spelling
structures available for thisPitch
.Declaration
Swift
public var spellings: [Pitch.Spelling] { get }
-
The first available
Pitch.Spelling
for thisPitch
, if present. Otherwisenil
.Declaration
Swift
public var defaultSpelling: Pitch.Spelling { get }
-
Throws
Pitch.Spelling.Error.incompatibleSpelling
if the givenspelling
is not appropriate for thisPitch
.Declaration
Swift
public func spelled(with spelling: Pitch.Spelling) throws -> SpelledPitch
Return Value
SpelledPitch
with the givenPitch.Spelling
, if the givenPitch.Spelling
is valid for thePitchClass
of the givenpitch
. -
Declaration
Swift
public var spelledWithDefaultSpelling: SpelledPitch { get }
Return Value
SpelledPitch
with the default spelling for thisPitch
.