Home Information Classes Download Usage Mail List Requirements Links Tutorial
00001 /***************************************************/ 00009 /***************************************************/ 00010 00011 #ifndef STK_CHORUS_H 00012 #define STK_CHORUS_H 00013 00014 #include "Effect.h" 00015 #include "DelayL.h" 00016 #include "WaveLoop.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 00040 StkFloat tick(StkFloat input); 00041 00043 StkFloat *tick( StkFloat *vector, unsigned int vectorSize ); 00044 00046 00052 StkFrames& tick( StkFrames& frames, unsigned int channel = 1 ); 00053 00054 protected: 00055 DelayL delayLine_[2]; 00056 WaveLoop *mods_[2]; 00057 StkFloat baseLength_; 00058 StkFloat modDepth_; 00059 00060 }; 00061 00062 #endif 00063
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |