Class Name

LowPass

Description

This is a low pass filter.

Examples

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

Constructors

  • LowPass(parent)

Methods

  • freq()Sets the cutoff frequency for the filter.
  • process()Starts applying this filter to an input signal.
  • res()Sets the resonance (or 'Q factor') of this filter. Increasing Q increases the resonance of the filter at its cutoff frequency. Defaults to 1.
  • set()Sets frequency and bandwidth of the filter with one method.
  • stop()Stop the effect.