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