DiatonicIntervalNumber
public protocol DiatonicIntervalNumber
Interface for DiatonicIntervalNumber
-like values.
-
Declaration
Swift
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
.
-
The amount of diatonic steps represented by this
IntervalOrdinal
.Declaration
Swift
var steps: Int { get }
-
Creates a
DiatonicIntervalNumber
with the given amount ofsteps
.Declaration
Swift
init?(steps: Int)