Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


FormSwep.h

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 
00069  protected:
00070 
00071   StkFloat computeSample( StkFloat input );
00072 
00073   bool dirty_;
00074   StkFloat frequency_;
00075   StkFloat radius_;
00076   StkFloat startFrequency_;
00077   StkFloat startRadius_;
00078   StkFloat startGain_;
00079   StkFloat targetFrequency_;
00080   StkFloat targetRadius_;
00081   StkFloat targetGain_;
00082   StkFloat deltaFrequency_;
00083   StkFloat deltaRadius_;
00084   StkFloat deltaGain_;
00085   StkFloat sweepState_;
00086   StkFloat sweepRate_;
00087 
00088 };
00089 
00090 #endif

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