Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


PitShift.h

00001 /***************************************************/
00010 /***************************************************/
00011 
00012 #ifndef STK_PITSHIFT_H
00013 #define STK_PITSHIFT_H
00014 
00015 #include "Effect.h" 
00016 #include "DelayL.h" 
00017 
00018 class PitShift : public Effect
00019 {
00020  public:
00022   PitShift();
00023 
00025   ~PitShift();
00026 
00028   void clear();
00029 
00031   void setShift(StkFloat shift);
00032 
00033  protected:
00034 
00035   StkFloat computeSample( StkFloat input );
00036 
00037   DelayL delayLine_[2];
00038   StkFloat delay_[2];
00039   StkFloat env_[2];
00040   StkFloat rate_;
00041   unsigned long delayLength;
00042   unsigned long halfLength;
00043 
00044 };
00045 
00046 #endif
00047 

The Synthesis ToolKit in C++ (STK)
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved.