Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


TwoPole.h

00001 /***************************************************/
00013 /***************************************************/
00014 
00015 #ifndef STK_TWOPOLE_H
00016 #define STK_TWOPOLE_H
00017 
00018 #include "Filter.h"
00019 
00020 class TwoPole : protected Filter
00021 {
00022  public:
00023 
00025   TwoPole();
00026 
00028   ~TwoPole();
00029 
00031   void clear(void);
00032 
00034   void setB0(StkFloat b0);
00035 
00037   void setA1(StkFloat a1);
00038 
00040   void setA2(StkFloat a2);
00041 
00043 
00056   void setResonance(StkFloat frequency, StkFloat radius, bool normalize = false);
00057 
00059 
00063   void setGain(StkFloat gain);
00064 
00066   StkFloat getGain(void) const;
00067 
00069   StkFloat lastOut(void) const;
00070 
00072   StkFloat tick(StkFloat sample);
00073 
00075 
00081   StkFrames& tick( StkFrames& frames, unsigned int channel = 0 );
00082 };
00083 
00084 #endif

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