Filter the frequency range of a sound. Previously called p5.Filter, this class can be used to create lowpass, highpass, and bandpass filters. It can also be used to create more complex filters like notch, allpass, and peaking filters. Additionally, you can create a lowpass, highpass, or bandpass filter using the LowPass, HighPass, and BandPass classes directly.
Ejemplos
Sintaxis
p5.Biquad([cutoff], [type])
Parámetros
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"
Métodos
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.
Notice any errors or typos? Please let us know. Please feel free to edit src/effects/Biquad.js and open a pull request!