Tree-Axis ``` Processing  


Back  
Name  

PitchShift

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
PitchShift myPitchShift;

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

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

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

  // shift pitch up by 3 semitones
  myPitchShift=new PitchShift(Ess.calcShift(3));
  
  myPitchShift.filter(myChannel);

  // play
  myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

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


Description   The PitchShift class is used to create filters that shift pitch while maintaining tempo. Ess.calcShift() can be use to convert a number in semitones to a percentage value
   
   
Constructors  
PitchShift(percent)
   
Parameters  
percent   float: the percent to pitch shift as a decimal (between 0 and 2)

   
Usage   Web & Application
   
 
 






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


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