Class Name

HighPass

Description

This is a high pass filter.

Examples

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

Constructors

  • HighPass(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.