Reference p5.EQ

p5.EQ

p5.EQ is an audio effect that performs the function of a multiband audio equalizer. Equalization is used to adjust the balance of frequency compoenents of an audio signal. This process is commonly used in sound production and recording to change the waveform before it reaches a sound output device. EQ can also be used as an audio effect to create interesting distortions by filtering out parts of the spectrum. p5.EQ is built using a chain of Web Audio Biquad Filter Nodes and can be instantiated with 3 or 8 bands. Bands can be added or removed from the EQ by directly modifying p5.EQ.bands (the array that stores filters).

This class extends p5.Effect. Methods amp(), chain(), drywet(), connect(), and disconnect() are available.

Examples

Syntax

p5.EQ([_eqsize])

Parameters

_eqsize
Number:

Constructor will accept 3 or 8, defaults to 3

Fields

bands

The p5.EQ is built with abstracted p5.Filter objects. To modify any bands, use methods of the p5.Filter API, especially gain and freq. Bands are stored in an array, with indices 0 - 3, or 0 - 7

Methods

process

Process an input by connecting it to the EQ

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References