DiatonicIntervalNumber
public protocol DiatonicIntervalNumber
Interface for DiatonicIntervalNumber-like values.
-
Declaration
Swift
static func distanceToIdealInterval(for steps: Int, to interval: Double) -> DoubleReturn Value
The distance from the given
intervalto 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
DiatonicIntervalNumberwith the given amount ofsteps.Declaration
Swift
init?(steps: Int)
View on GitHub
Install in Dash
DiatonicIntervalNumber Protocol Reference