Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


OnePole.h

00001 /***************************************************/
00013 /***************************************************/
00014 
00015 #ifndef STK_ONEPOLE_H
00016 #define STK_ONEPOLE_H
00017 
00018 #include "Filter.h"
00019 
00020 class OnePole : protected Filter
00021 {
00022 public:
00023 
00025   OnePole();
00026 
00028   OnePole( StkFloat thePole );
00029 
00031   ~OnePole();
00032 
00034   void clear(void);
00035 
00037   void setB0(StkFloat b0);
00038 
00040   void setA1(StkFloat a1);
00041 
00043 
00050   void setPole(StkFloat thePole);
00051 
00053 
00057   void setGain(StkFloat gain);
00058 
00060   StkFloat getGain(void) const;
00061 
00063   StkFloat lastOut(void) const;
00064 
00066   StkFloat tick(StkFloat sample);
00067 
00069 
00075   StkFrames& tick( StkFrames& frames, unsigned int channel = 0 );
00076 
00077 };
00078 
00079 #endif

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