Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

softClip

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
Amplify myAmplify;

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

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

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

  // amplify 500% so the sound will clip
  myAmplify=new Amplify(5);
  
  myAmplify.filter(myChannel);

  // turn on soft clipping
  myChannel.softClip=true;

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   Set softClip to true to perform soft clipping on sample data sent to the sound playback engine. Samples outside the range of -1 to 1 will be hard clipped if soft clipping is not turned on, producing harsh digital noise. By default softClip is set to false
   
Syntax  
channel.softClip
   
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.