Tree-Axis ``` Processing  


Back  
Name  

BandPass

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
BandPass myBandPass;
Normalize myNormalize;

void setup() {
  size(256,200);

  // start up Ess
  Ess.start(this);

  // load "cell.aif" into a new AudioChannel
  myChannel=new AudioChannel("cell.aif");

  // apply a band pass filter
  myBandPass=new BandPass(960,-20,16);
  
  myBandPass.filter(myChannel);

  // normalize
  myNormalize=new Normalize();
  
  myNormalize.filter(myChannel);

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

public void stop() {
  Ess.stop();
  super.stop();
}


Description   The BandPass class is used to create filters for the attenuation of frequencies within a range above and below a center frequency
   
   
Constructors  
BandPass(frequency, gain, q)
   
Parameters  
frequency   float: the center frequency

gain   float: the boost/cut volume in decibels

q   float: the sharpness of response. The greater the q value, this sharper the filter

   
Usage   Web & Application
   
 
 






   
 
Updated: Tue May 31 04:52:38 PDT 2006


 
  Questions, comments, corrections: e-mail Krister Olsson.