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
Controls either width of a bandpass frequency, or the resonance of a low/highpass cutoff frequency.
gain
The gain of the filter in dB units. p5.Filter.gain() controls the gain parameter of a Biquad Filter node
setType
Set the type of the filter.
freq
Set the cutoff frequency of the filter.

Related References