Name

process()

Class

LowPass

Description

Starts applying this filter to an input signal.

Examples

  • import processing.sound.*;
    
    WhiteNoise noise;
    LowPass lowPass;
    
    void setup() {
      size(640,360);
      background(255);
        
      // Create a noise generator and a bandpass filter
      noise = new WhiteNoise(this);
      lowPass = new LowPass(this);    
    
      // start the noise generator and the filter
      noise.play(0.5);
      lowPass.process(noise);
    }      
    
    void draw() {
    }
    

Syntax

  • filter.process(input, freq)
  • filter.process(input, freq, q)

Parameters

  • input(SoundObject)the sound source to filter
  • freq(float)the cutoff frequency in Hertz
  • q(float)the resonance (or 'Q factor'), a value between 0.1 and 10

Return

  • void