Reference+
Name
freq()
Class
LowPass
Description
Sets the cutoff frequency for the filter.
Examples
import processing.sound.*; WhiteNoise noise; LowPass lowPass; float freq=2500; void setup() { size(640,360); background(255); // Create a noise generator and a lowpass filter noise = new WhiteNoise(this); lowPass = new LowPass(this); noise.play(0.5); lowPass.process(noise); // Change the cutoff frequency of the filter lowPass.freq(freq); } void draw() { }
Syntax
filter.freq(freq)
Parameters
freq
(float)
the cutoff frequency in Hertz
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.