Tree-Axis ``` Processing  


Back  
Name  

WhiteNoise

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
WhiteNoise myNoise;

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

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

  // create a new AudioChannel
  myChannel=new AudioChannel();

  // set the channel size to 5 seconds
  myChannel.initChannel(myChannel.frames(5000));

  // generate 3 seconds of soft white noise
  myNoise=new WhiteNoise(.1);
  myNoise.generate(myChannel,0,myChannel.frames(3000));

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   The WhiteNoise class is used to generate white noise
   
   
Constructors  
WhiteNoise(volume)
   
Parameters  
volume   float: the volume of the white noise (between 0 and 1)

   
Usage   Web & Application
   
 
 






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


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