Tree-Axis ``` Processing  


Back  
Class   Envelope
   
Name  

points

   
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[] env1=new EPoint[3];
  env1[0]=new EPoint(0,0);
  env1[1]=new EPoint(.25,1);
  env1[2]=new EPoint(2,0);

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

  // apply another, a collection of random values
  EPoint[] env2=new EPoint[10];
  
  for (int i=0;i<10;i++) {
    env2[i]=new EPoint(i,random(0,3));
  }
  
  myEnvelope.points=env2;

  myEnvelope.filter(myChannel);

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   An array of EPoint instances defining the shape of the envelope
   
Syntax  
envelope.points
   
Parameters  
envelope   any instance of Envelope

   
Usage   Web & Application
   
 
 






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


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