Tree-Axis ``` Processing  


Back  
Name  

Normalize

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
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");

  // normalize first 2 seconds
  myNormalize=new Normalize();
  
  myNormalize.filter(myChannel,0,myChannel.frames(2000));

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   The Normalize class is used to create filters for the normalization of sample data
   
   
Constructors  
Normalize()
Normalize(percent)
   
Parameters  
percent   float: the amount of normalization as a decimal. The default is 1 (100%)

   
Usage   Web & Application
   
 
 






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


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