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.

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References