A sound effect which applies a biquad filter.

Hierarchy

  • BiquadFilterNode
    • BiquadFilterEffect

Constructors

Properties

Accessors

Methods

Constructors

  • A ConvolverEffect is constructed by passing the following parameters.

    Parameters

    • context: AudioContext

      The audio context required by the BiquadFilterNode

    • Optional options: {
          type: BiquadFilterType;
          intensity: number;
      } = {}

      Additional options which modify the BiquadFilterEffect behavior

      • type: BiquadFilterType

        The filter type to apply

      • intensity: number

        The initial intensity of the effect

    Returns BiquadFilterEffect

Properties

type: BiquadFilterType
#type: BiquadFilterType

The original configured type of the effect.

#intensity: number
#ALLOWED_TYPES: string[] = ...

The allowed filter types supported by this effect class.

Accessors

  • get intensity(): number
  • Adjust the intensity of the effect on a scale of 0 to 10.

    Returns number

  • set intensity(intensity): void
  • Parameters

    • intensity: number

    Returns void

Methods

  • Update the state of the effect node given the active flag and numeric intensity.

    Parameters

    • options: {
          intensity: number;
          type: BiquadFilterType;
      } = {}

      Options which are updated

      • intensity: number

        A new effect intensity

      • type: BiquadFilterType

        A new filter type

    Returns void