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 of steps.

  • The amount of diatonic steps represented by this IntervalOrdinal.

    Declaration

    Swift

    var steps: Int { get }
  • Creates a DiatonicIntervalNumber with the given amount of steps.

    Declaration

    Swift

    init?(steps: Int)