Class: EqualizerFilter

filters.EqualizerFilter

Filter for adding equalizer bands.

new filters.EqualizerFilter (f32, f64, f125, f250, f500, f1k, f2k, f4k, f8k, f16k) overrides

Name Type Default Description
f32 number 0

Default gain for 32 Hz

f64 number 0

Default gain for 64 Hz

f125 number 0

Default gain for 125 Hz

f250 number 0

Default gain for 250 Hz

f500 number 0

Default gain for 500 Hz

f1k number 0

Default gain for 1000 Hz

f2k number 0

Default gain for 2000 Hz

f4k number 0

Default gain for 4000 Hz

f8k number 0

Default gain for 8000 Hz

f16k number 0

Default gain for 16000 Hz

Extends

Members

filters.EqualizerFilter.F125 number staticreadonly

Band at 125 Hz

Default Value:
  • 125

filters.EqualizerFilter.F16K number staticreadonly

Band at 16000 Hz

Default Value:
  • 16000

filters.EqualizerFilter.F1K number staticreadonly

Band at 1000 Hz

Default Value:
  • 1000

filters.EqualizerFilter.F250 number staticreadonly

Band at 250 Hz

Default Value:
  • 250

filters.EqualizerFilter.F2K number staticreadonly

Band at 2000 Hz

Default Value:
  • 2000

filters.EqualizerFilter.F32 number staticreadonly

Band at 32 Hz

Default Value:
  • 32

filters.EqualizerFilter.F4K number staticreadonly

Band at 4000 Hz

Default Value:
  • 4000

filters.EqualizerFilter.F500 number staticreadonly

Band at 500 Hz

Default Value:
  • 500

filters.EqualizerFilter.F64 number staticreadonly

Band at 64 Hz

Default Value:
  • 64

filters.EqualizerFilter.F8K number staticreadonly

Band at 8000 Hz

Default Value:
  • 8000

bands BiquadFilterNode[] readonly

The list of bands

bandsMap Record<number, BiquadFilterNode> readonly

The map of bands to frequency

f125 number

Gain at 125 Hz frequencey.

Default Value:
  • 0

f16k number

Gain at 16 KHz frequencey.

Default Value:
  • 0

f1k number

Gain at 1 KHz frequencey.

Default Value:
  • 0

f250 number

Gain at 250 Hz frequencey.

Default Value:
  • 0

f2k number

Gain at 2 KHz frequencey.

Default Value:
  • 0

f32 number

Gain at 32 Hz frequencey.

Default Value:
  • 0

f4k number

Gain at 4 KHz frequencey.

Default Value:
  • 0

f500 number

Gain at 500 Hz frequencey.

Default Value:
  • 0

f64 number

Gain at 64 Hz frequencey.

Default Value:
  • 0

f8k number

Gain at 8 KHz frequencey.

Default Value:
  • 0

Methods

getGain (frequency) number

Get gain amount on a specific frequency.

Name Type Description
frequency number
Returns:
Type Description
number The amount of gain set.

reset () void

Reset all frequency bands to have gain of 0

setGain (frequency, gain) void

Set gain on a specific frequency.

Name Type Default Description
frequency number

The frequency, see EqualizerFilter.F* for bands

gain number 0

Recommended -40 to 40.

Inherited Properties

From class filters.Filter

destination AudioNode inherited

The node to connect for the filter to the previous filter.

source AudioNode inherited

The node to connect for the filter to the previous filter.

Inherited Methods

From class filters.Filter

connect (destination) void inherited

Connect to the destination.

Name Type Description
destination AudioNode

The destination node to connect the output to

destroy () void inherited

Destroy the filter and don't use after this.

disconnect () void inherited

Completely disconnect filter from destination and source nodes.

init (destination, source) void protected inherited

Reinitialize

Name Type Attributes Description
destination AudioNode
source AudioNode <optional>