Pitch
struct Pitch : NoteNumberRepresentable
-
Things that can go wrong while applying a
See morePitch.Spellingto aPitch.Declaration
Swift
public enum Error : Swift.Error -
All
Pitch.Spellingstructures available for thisPitch.Declaration
Swift
public var spellings: [Pitch.Spelling] { get } -
The first available
Pitch.Spellingfor thisPitch, if present. Otherwisenil.Declaration
Swift
public var defaultSpelling: Pitch.Spelling { get } -
Throws
Pitch.Spelling.Error.incompatibleSpellingif the givenspellingis not appropriate for thisPitch.Declaration
Swift
public func spelled(with spelling: Pitch.Spelling) throws -> SpelledPitchReturn Value
SpelledPitchwith the givenPitch.Spelling, if the givenPitch.Spellingis valid for thePitchClassof the givenpitch. -
Declaration
Swift
public var spelledWithDefaultSpelling: SpelledPitch { get }Return Value
SpelledPitchwith the default spelling for thisPitch.
Install in Dash
Pitch Extension Reference