Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

smoothPan

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;

void setup() {
  // start up Ess
  Ess.start(this);

  // load "cell.aif" into a new AudioChannel
  myChannel=new AudioChannel("cell.aif");
	
  // only pan at zero crossings
  myChannel.smoothPan=true;

  // pan left
  myChannel.pan(Ess.LEFT);
  
  // play
  myChannel.play();
  
  // pan right over the duration of the sound
  myChannel.panTo(Ess.RIGHT,myChannel.duration);
}

void draw() {
}

// we are done, clean up Ess

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


Description   Set smoothPan to true to defer any changes to an AudioChannel's pan until the playback head is at a zero crossing, resulting in less noise. By default smoothPan is set to false
   
Syntax  
channel.smoothPan
   
Parameters  
channel   any instance of AudioChannel

   
Usage   Web & Application
   
 
 






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


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