Tree-Axis ``` Processing  


Back  
Name  

EPoint

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
Envelope myEnvelope;

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

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

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

  // apply a 3 point envelope
  EPoint[] env=new EPoint[3];
  env[0]=new EPoint(0,0);
  env[1]=new EPoint(.25,1);
  env[2]=new EPoint(2,0);

  myEnvelope=new Envelope(env);
  
  myEnvelope.filter(myChannel);

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   Envelope point class for use with the Envelope filter class
   
   
Constructors  
EPoint(time, amplitude)
   
Parameters  
time   float: the time (x position) of the envelope point

amplitude   float: the amplitude (y position) of the envelope point

   
Usage   Web & Application
   
 
 






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


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