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

  1. /*******************************************/
  2. /*  Linearly Interpolating Delay Line      */
  3. /*  Object by Perry R. Cook 1995-96        */
  4. /*  This one uses a delay line of maximum  */
  5. /*  length specified on creation, and      */ 
  6. /*  linearly interpolates fractional       */
  7. /*  length.  It is designed to be more     */
  8. /*  efficient if the delay length is not   */
  9. /*  changed very often.                    */
  10. /*******************************************/
  11.  
  12. #if !defined(__DLineL_h)
  13. #define __DLineL_h
  14.  
  15. #include "Filter.h"
  16.  
  17. class DLineL : public Filter
  18. {
  19.   protected:  
  20.     long inPoint;
  21.     long outPoint;
  22.     long length;
  23.     MY_FLOAT alpha;
  24.     MY_FLOAT omAlpha;
  25.   public:
  26.     DLineL(long max_length);  
  27.     ~DLineL();  
  28.     void clear();
  29.     void setDelay(MY_FLOAT length);
  30.     MY_FLOAT tick(MY_FLOAT sample);
  31. };
  32.  
  33. #endif
  34.