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

  1. /**********************************************/
  2. /*  Lip Filter Object by Perry R. Cook, 1995-96*/    
  3. /*  The lip of the brass player has dynamics  */
  4. /*  which are controlled by the mass, spring  */
  5. /*  constant, and damping of the lip.  This   */
  6. /*  filter simulates that behavior and the    */
  7. /*  transmission/reflection properties as     */
  8. /*  well.  See Cook TBone and HosePlayer      */
  9. /*  instruments and articles.                 */
  10. /**********************************************/
  11.  
  12. #include "Object.h"
  13. #include "BiQuad.h"
  14.  
  15. class LipFilt : public Object
  16. {
  17.   protected:
  18.     BiQuad *filter;
  19.     MY_FLOAT lastOutput;
  20.   public:
  21.     LipFilt();
  22.     ~LipFilt();
  23.     void clear();
  24.     void setFreq(MY_FLOAT frequency);
  25.     MY_FLOAT tick(MY_FLOAT mouthSample,MY_FLOAT boreSample);
  26.     MY_FLOAT lastOut();
  27. };
  28.  
  29.