Reference p5.Biquad

p5.Biquad

Filter the frequency range of a sound.

Examples

Syntax

p5.Biquad([cutoff], [type])

Parameters

cutoff
Number: cutoff frequency of the filter, a value between 0 and 24000.
type
String: filter type. Options: "lowpass", "highpass", "bandpass", "lowshelf", "highshelf", "notch", "allpass", "peaking"

Methods

res
The filter's resonance factor.
gain
The gain of the filter in dB units.
setType
Set the type of the filter.
freq
Set the cutoff frequency of the filter.
Notice any errors or typos? Please let us know. Please feel free to edit src/Biquad.js and open a pull request!

Related References