Tree-Axis ``` Processing  


Back  
Class   FadeOut
   
Name  

curve

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
FadeOut myFadeOut;

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

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

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

  // fade out slow for the first 2 seconds
  myFadeOut=new FadeOut(Ess.SLOW);
  
  myFadeOut.filter(myChannel,0,myChannel.frames(2000));

  // then fade out again fast for the next 2 seconds
  myFadeOut.curve=Ess.FAST;

  myFadeOut.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 curve of the fade: Ess.LINEAR, Ess.SLOW, or Ess.FAST
   
Syntax  
fadeout.curve
   
Parameters  
fadeout   any instance of FadeOut

   
Usage   Web & Application
   
 
 






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


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