home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / NOTATION / SILENCE / TWOZERO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-18  |  650 b   |  28 lines

  1. /*******************************************/
  2. /*  Two Zero Filter Class,                 */
  3. /*  by Perry R. Cook, 1995-96              */ 
  4. /*  See books on filters to understand     */
  5. /*  more about how this works.  Nothing    */
  6. /*  out of the ordinary in this version.   */
  7. /*******************************************/
  8.  
  9. #if !defined(__TwoZero_h)
  10. #define __TwoZero_h
  11.  
  12. #include "Filter.h"
  13.  
  14. class TwoZero : public Filter
  15. {
  16.   protected:  
  17.     MY_FLOAT zeroCoeffs[2];
  18.   public:
  19.     TwoZero();
  20.     ~TwoZero();
  21.     void clear();
  22.     void setZeroCoeffs(MY_FLOAT *coeffs);
  23.     void setGain(MY_FLOAT aValue);
  24.     MY_FLOAT tick(MY_FLOAT sample);
  25. };
  26.  
  27. #endif
  28.