xen-dev-utils
    Preparing search index...

    Function circleDifference

    • Calculate the difference between two cents values such that equave equivalence is taken into account.

      Parameters

      • a: number

        The first pitch measured in cents.

      • b: number

        The second pitch measured in cents.

      • equaveCents: number = 1200.0

        The interval of equivalence measured in cents.

      Returns number

      The first pitch minus the second pitch but on a circle such that large differences wrap around.