-
Imperfect unordered interval ordinals (e.g., unison, fourth).
Declaration
Swift
case perfect(Perfect)
-
Perfect unordered interval ordinals (e.g., second, third).
Declaration
Swift
case imperfect(Imperfect)
-
Undocumented
Declaration
Swift
public var inverse: UnorderedDiatonicInterval.Number { get }
-
The amount of diatonic steps represented by this
UnorderedIntervalDescriptor.Ordinal
.Declaration
Swift
public var steps: Int { get }
-
Createss a
UnorderedDiatonicInterval
with the given amount ofsteps
.Declaration
Swift
public init?(steps: Int)
-
Creates an
UnorderedDiatonicInterval
with the givenordered
interval.In the case that the
ordered
interval is out of range (e.g.,.fifth
,.sixth
,.seventh
), the.inverse
is converted into an unordered interval (e.g., a.seventh
becomes a.second
).Declaration
Swift
public init(_ ordered: DiatonicInterval.Number)
-
Declaration
Swift
public static func distanceToIdealInterval(for steps: Int, to interval: Double) -> Double
Return Value
The distance from the given
interval
to the ideal interval for the given amount ofsteps
.