VideoUltra API
    Preparing search index...

    Function pitchRatio

    • How much the pitch-shifter raises the pitch: the semitones asked for and, with keepPitch, the inverse of the speed (clamped to 0.5×…2×, where a shifter still sounds natural).

      Parameters

      • fx:
            | {
                compress?: number;
                denoise?: number;
                eq?: { high: number; low: number; mid: number };
                keepPitch?: boolean;
                pitch?: number;
            }
            | undefined
        • {
              compress?: number;
              denoise?: number;
              eq?: { high: number; low: number; mid: number };
              keepPitch?: boolean;
              pitch?: number;
          }
          • Optionalcompress?: number

            Compressor ("even out"): 0 = off … 1 = strong; quiet parts come up, loud ones go down.

          • Optionaldenoise?: number

            Clean up noise: 0 = off … 1 = strong; steady background noise (hiss, hum, fans) goes down.

          • Optionaleq?: { high: number; low: number; mid: number }

            Three-band equaliser, dB each (−12…12): bass (shelf, 120 Hz), middle (1 kHz), treble (shelf, 8 kHz).

          • OptionalkeepPitch?: boolean

            Keep the original pitch when the clip is sped up or slowed down (speeds 0.5×…2×).

          • Optionalpitch?: number

            Pitch shift in semitones (−12…12), the speed unchanged.

        • undefined
      • speed: number

      Returns number