Name

process()

Class

BandPass

Description

Start applying this bandpass filter to an input signal.

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() {
    }
    

Syntax

  • bandpass.process(input, freq, bw)

Parameters

  • input(SoundObject)the sound source to filter
  • freq(float)the center frequency in Hertz
  • bw(float)the filter bandwidth in Hertz

Return

  • void