Function approximateOddLimitWithErrors

  • Approximate a musical interval by ratios of which neither the numerator or denominator exceeds a specified limit, once all powers of 2 are removed.

    Parameters

    • cents: number

      Size of the musical interval measured in cents.

    • limit: number

      Maximum odd limit.

    Returns [Fraction, number][]

    All odd limit fractions within 600 cents of the input value sorted by closeness with cent offsets attached.