Reference filter()

filter()

Set a lowpass filter frequency for the delay. A lowpass filter will cut off any frequencies higher than the filter frequency.

Syntax

filter(cutoffFreq, res)

Parameters

cutoffFreq
Number|Object:

A lowpass filter will cut off any frequencies higher than the filter frequency.

res
Number|Object:

Resonance of the filter frequency cutoff, or an object (i.e. a p5.Oscillator) that can be used to modulate this parameter. High numbers (i.e. 15) will produce a resonance, low numbers (i.e. .2) will produce a slope.

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