Home Information Classes Download Usage Mail List Requirements Links Tutorial

# OnePole.h

    00001 /***************************************************/
    00013 /***************************************************/
    00014
    00015 #if !defined(__ONEPOLE_H)
    00016 #define __ONEPOLE_H
    00017
    00018 #include "Filter.h"
    00019
    00020 class OnePole : protected Filter
    00021 {
    00022 public:
    00023
    00025   OnePole();
    00026
    00028   OnePole(MY_FLOAT thePole);
    00029
    00031   ~OnePole();
    00032
    00034   void clear(void);
    00035
    00037   void setB0(MY_FLOAT b0);
    00038
    00040   void setA1(MY_FLOAT a1);
    00041
    00043
    00050   void setPole(MY_FLOAT thePole);
    00051
    00053
    00057   void setGain(MY_FLOAT theGain);
    00058
    00060   MY_FLOAT getGain(void) const;
    00061
    00063   MY_FLOAT lastOut(void) const;
    00064
    00066   MY_FLOAT tick(MY_FLOAT sample);
    00067
    00069   MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00070 };
    00071
    00072 #endif

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