Tree-Axis ``` Processing  


Back  
Name  

PinkNoise

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
PinkNoise 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 pink noise
  myNoise=new PinkNoise(.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 PinkNoise class is used to generate pink noise (white noise that has been filtered to adjust for the increase in frequencies per octave)
   
   
Constructors  
PinkNoise(volume)
   
Parameters  
volume   float: the volume of the pink noise (between 0 and 1)

   
Usage   Web & Application
   
 
 






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


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