PitchSpellingModifier
public protocol PitchSpellingModifier : Comparable, CustomStringConvertible, Hashable
Interface for types which modify a LetterName
value. Graphically repesented as components of
an Accidental
.
-
A
PitchSpellingModifier
which does not apply any modification.Declaration
Swift
static var identity: Self { get }
-
The amount that a
PitchSpellingModifier
modifies the basePitch.Class
of aLetterName
(in percentage of aNoteNumber
).Declaration
Swift
var adjustment: Double { get }
-
==(_:_:)
Extension methodDeclaration
Swift
public static func == (lhs: Self, rhs: Self) -> Bool
Return Value
true
if theadjustment
property of thelhs
value is equal to theadjustment
property of therhs
value. Otherwisefalse
.
-
hashValue
Extension methodDeclaration
Swift
public var hashValue: Int { get }
Return Value
The
hashValue
of theadjustment
property.
-
<(_:_:)
Extension methodDeclaration
Swift
public static func < (lhs: Self, rhs: Self) -> Bool
Return Value
true
if theadjustment
property of thelhs
value is less than theadjustment
property of therhs
value. Otherwisefalse
.