Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

panning

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;

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

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

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

  // pan left
  myChannel.pan(Ess.LEFT);
  
  // play
  myChannel.play();
  
  // pan right over the duration of the sound
  myChannel.panTo(Ess.RIGHT,myChannel.duration);
  print("Starting pan");
  
  // slow the framerate
  framerate(1);
}

void draw() {
  // are we panning?
  if (myChannel.panning) print(".");
}

void audioOutputPan(AudioOutput ch) {
  print("done!");
}

// we are done, clean up Ess

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


Description   Set to true if an AudioChannel is actively panning as the result of panTo()
   
Syntax  
channel.panning
   
Parameters  
channel   any instance of AudioChannel

   
Usage   Web & Application
   
 
 






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


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