Home Information Classes Download Usage Mail List Requirements Links Tutorial

# PoleZero.h

    00001 /***************************************************/
    00013 /***************************************************/
    00014
    00015 #if !defined(__POLEZERO_H)
    00016 #define __POLEZERO_H
    00017
    00018 #include "Filter.h"
    00019
    00020 class PoleZero : protected Filter
    00021 {
    00022  public:
    00023
    00025   PoleZero();
    00026
    00028   ~PoleZero();
    00029
    00031   void clear(void);
    00032
    00034   void setB0(MY_FLOAT b0);
    00035
    00037   void setB1(MY_FLOAT b1);
    00038
    00040   void setA1(MY_FLOAT a1);
    00041
    00043
    00048   void setAllpass(MY_FLOAT coefficient);
    00049
    00051
    00057   void setBlockZero(MY_FLOAT thePole = 0.99);
    00058
    00060
    00064   void setGain(MY_FLOAT theGain);
    00065
    00067   MY_FLOAT getGain(void) const;
    00068
    00070   MY_FLOAT lastOut(void) const;
    00071
    00073   MY_FLOAT tick(MY_FLOAT sample);
    00074
    00076   MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00077 };
    00078
    00079 #endif

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