Class PitchShifterProcessor

This class extends AudioWorkletProcessor. Override process method for pitch shifter and Update parameters on message event.

Hierarchy

  • AudioWorkletProcessor
    • PitchShifterProcessor

Constructors

Properties

isActive: boolean = true
pitch: number = 1
port: MessagePort = ...
GAIN_CORRECTION: 2 = ...

Methods

  • This method shifts pitch.

    Parameters

    • inputs: Float32Array

      This argument is instance of Float32Array as input.

    • outputs: Float32Array

      This argument is instance of Float32Array as output.

    • fftSize: number

      This argument is FFT size (power of two).

    Returns void

  • This class (static) method executes FFT.

    Parameters

    • reals: Float32Array

      This argument is instance of Float32Array for real number.

    • imags: Float32Array

      This argument is instance of Float32Array for imaginary number.

    • size: number

      This argument is FFT size (power of two).

    Returns void

  • This class (static) method executes IFFT.

    Parameters

    • reals: Float32Array

      This argument is instance of Float32Array for real number.

    • imags: Float32Array

      This argument is instance of Float32Array for imaginary number.

    • size: number

      This argument is IFFT size (power of two).

    Returns void