Tree-Axis ``` Processing  


Back  
Class   EQ
   
Name  

gain

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
EQ myEQ;
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
  myEQ=new EQ(960,-20,1);
  
  myEQ.filter(myChannel);
  
  // apply a second band pass filter
  myEQ.frequency=480;
  myEQ.gain=20;
  myEQ.q=4;
  
  myEQ.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 boost/cut volume in decibels
   
Syntax  
eq.gain
   
Parameters  
eq   any instance of EQ

   
Usage   Web & Application
   
 
 






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


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