Name

process()

Class

HighPass

Description

Starts applying this filter to an input signal.

Examples

  • import processing.sound.*;
    
    WhiteNoise noise;
    HighPass highPass;
    
    void setup() {
      size(640,360);
      background(255);
        
      // Create a noise generator and a bandpass filter
      noise = new WhiteNoise(this);
      highPass = new HighPass(this);    
    
      // start the noise generator and the filter
      noise.play(0.5);
      highPass.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