Tree-Axis ``` Processing  


Back  
Name  

Reverb

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
Reverb myReverb;

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

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

  // load "cell.aif" into a new AudioChannel
  myChannel=new AudioChannel("cell.aif");

  // apply reverb to the first 2 seconds
  myReverb=new Reverb();
  
  myReverb.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 Reverb class is used to create filters that can be used to mimic the acoustic properties of different spaces. When applying reverb it is important to leave adequate space at the end of a Channel for the reverb's decay
   
   
Constructors  
Reverb()
Reverb(roomSize, predelay, damp)
   
Parameters  
roomSize   float: an abstract numerical representation of the size of the space in which the sound is reverberating (between 0 and 1). The default is .5

predelay   int: the delay in sample frames before applying reverb. The default is 0

damp   float: the percent of damping (between 0 and 1). Damping reduces reverb decay time. The default is .5

   
Usage   Web & Application
   
 
 






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


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