Class Name

BandPass

Description

This is a band pass filter.

Examples

  • import processing.sound.*;
    
    WhiteNoise noise;
    BandPass bandPass;
    
    float amp=0.0;
    
    void setup() {
      size(640,360);
      background(255);
        
      // Create a noise generator and a bandpass filter
      noise = new WhiteNoise(this);
      bandPass = new BandPass(this);
        
      noise.play(0.5);
      bandPass.process(noise, 100, 50);
    }      
    
    void draw() {
    }
    

Constructors

  • BandPass(parent)

Methods

  • bw()Sets the bandwidth for the filter.
  • freq()Sets the center frequency of the filter.
  • process()Start applying this bandpass filter to an input signal.
  • res()Sets the resonance (or 'Q factor') of this filter.
  • set()Sets frequency and bandwidth of the filter with one method.
  • stop()Stop the effect.