Number

public enum Number : DiatonicIntervalNumber

The number of a UnorderedDiatonicInterval.

  • 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 }
  • Perfect ordinals.

    See more

    Declaration

    Swift

    public enum Perfect : Int, InvertibleEnum
  • Imperfect ordinals.

    See more

    Declaration

    Swift

    public enum Imperfect : Int, InvertibleEnum
  • 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 of steps.