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