Universal Music Theory Library - v0.12.0
    Preparing search index...

    Function bestEDOFor

    • Finds the smallest EDO that approximates all given JI ratios within a cent threshold.

      Parameters

      • jiRatios: [number, number][]

        Array of [numerator, denominator] ratios.

      • maxSize: number = 72

        Maximum EDO size to search (default 72).

      Returns { size: number; totalError: number }

      • size: number

        Number of equal divisions of the octave.

      • totalError: number

        Sum of the absolute errors of all the ratios, in cents.