Home Information Classes Download Usage Mail List Requirements Links Tutorial

# TwoPole.h

    00001 /***************************************************/
    00013 /***************************************************/
    00014
    00015 #if !defined(__TWOPOLE_H)
    00016 #define __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(MY_FLOAT b0);
    00035
    00037   void setA1(MY_FLOAT a1);
    00038
    00040   void setA2(MY_FLOAT a2);
    00041
    00043
    00056   void setResonance(MY_FLOAT frequency, MY_FLOAT radius, bool normalize = FALSE);
    00057
    00059
    00063   void setGain(MY_FLOAT theGain);
    00064
    00066   MY_FLOAT getGain(void) const;
    00067
    00069   MY_FLOAT lastOut(void) const;
    00070
    00072   MY_FLOAT tick(MY_FLOAT sample);
    00073
    00075   MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00076 };
    00077
    00078 #endif

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