@libraz/libcantus - v1.1.0
    Preparing search index...

    Function centsToRatio

    • The frequency ratio an interval in cents spans — the inverse of ratioToCents.

      Multiply a frequency by this to move it by that many cents, which is how a cents offset (a pitch-bend spec, a tuning table entry) is applied.

      Parameters

      • cents: number

        The interval in cents.

      Returns number

      The frequency ratio.

      import { centsToRatio } from '@libraz/libcantus';
      440 * centsToRatio(14); // A440 raised by 14 cents