Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


Chorus.h

00001 /***************************************************/
00009 /***************************************************/
00010 
00011 #ifndef STK_CHORUS_H
00012 #define STK_CHORUS_H
00013 
00014 #include "Effect.h" 
00015 #include "DelayL.h" 
00016 #include "SineWave.h" 
00017 
00018 class Chorus : public Effect
00019 {
00020  public:
00022 
00025   Chorus( StkFloat baseDelay = 6000 );
00026 
00028   ~Chorus();
00029 
00031   void clear();
00032 
00034   void setModDepth(StkFloat depth);
00035 
00037   void setModFrequency(StkFloat frequency);
00038 
00039  protected:
00040 
00041   StkFloat computeSample( StkFloat input );
00042 
00043   DelayL delayLine_[2];
00044   SineWave mods_[2];
00045   StkFloat baseLength_;
00046   StkFloat modDepth_;
00047 
00048 };
00049 
00050 #endif
00051 

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