Home Information Classes Download Usage Mail List Requirements Links Tutorial

# BiQuad.h

    00001 /***************************************************/
    00013 /***************************************************/
    00014
    00015 #if !defined(__BIQUAD_H)
    00016 #define __BIQUAD_H
    00017
    00018 #include "Filter.h"
    00019
    00020 class BiQuad : protected Filter
    00021 {
    00022 public:
    00023
    00025   BiQuad();
    00026
    00028   virtual ~BiQuad();
    00029
    00031   void clear(void);
    00032
    00034   void setB0(MY_FLOAT b0);
    00035
    00037   void setB1(MY_FLOAT b1);
    00038
    00040   void setB2(MY_FLOAT b2);
    00041
    00043   void setA1(MY_FLOAT a1);
    00044
    00046   void setA2(MY_FLOAT a2);
    00047
    00049
    00060   void setResonance(MY_FLOAT frequency, MY_FLOAT radius, bool normalize = FALSE);
    00061
    00063
    00069   void setNotch(MY_FLOAT frequency, MY_FLOAT radius);
    00070
    00072
    00078   void setEqualGainZeroes();
    00079
    00081
    00085   void setGain(MY_FLOAT theGain);
    00086
    00088   MY_FLOAT getGain(void) const;
    00089
    00091   MY_FLOAT lastOut(void) const;
    00092
    00094   MY_FLOAT tick(MY_FLOAT sample);
    00095
    00097   MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00098 };
    00099
    00100 #endif

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