Home Information Classes Download Usage Mail List Requirements Links Tutorial
00001 /***************************************************/ 00013 /***************************************************/ 00014 00015 #ifndef STK_FORMSWEP_H 00016 #define STK_FORMSWEP_H 00017 00018 #include "BiQuad.h" 00019 00020 class FormSwep : public BiQuad 00021 { 00022 public: 00023 00025 FormSwep(); 00026 00028 ~FormSwep(); 00029 00031 00042 void setResonance(StkFloat frequency, StkFloat radius); 00043 00045 void setStates(StkFloat frequency, StkFloat radius, StkFloat gain = 1.0); 00046 00048 void setTargets(StkFloat frequency, StkFloat radius, StkFloat gain = 1.0); 00049 00051 00059 void setSweepRate(StkFloat rate); 00060 00062 00067 void setSweepTime(StkFloat time); 00068 00070 StkFloat tick(StkFloat sample); 00071 00073 StkFloat *tick(StkFloat *vector, unsigned int vectorSize); 00074 00076 00082 StkFrames& tick( StkFrames& frames, unsigned int channel = 1 ); 00083 00084 protected: 00085 bool dirty_; 00086 StkFloat frequency_; 00087 StkFloat radius_; 00088 StkFloat startFrequency_; 00089 StkFloat startRadius_; 00090 StkFloat startGain_; 00091 StkFloat targetFrequency_; 00092 StkFloat targetRadius_; 00093 StkFloat targetGain_; 00094 StkFloat deltaFrequency_; 00095 StkFloat deltaRadius_; 00096 StkFloat deltaGain_; 00097 StkFloat sweepState_; 00098 StkFloat sweepRate_; 00099 00100 }; 00101 00102 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |