Tree-Axis ``` Processing  


Back  
Class   Normalize
   
Name  

percent

   
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));

  // normalize next 2 seconds 10%
  myNormalize.percent=.1;
  
  myNormalize.filter(myChannel,myChannel.frames(2000),myChannel.frames(2000));  

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   The amount of normalization as a decimal
   
Syntax  
normalize.percent
   
Parameters  
normalize   any instance of Normalize

   
Usage   Web & Application
   
 
 






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


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