home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / NOTATION / SILENCE / DLINEN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-19  |  740 b   |  31 lines

  1. /*******************************************/
  2. /*  Non-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.  A non-  */
  6. /*  interpolating delay line should be     */
  7. /*  used in non-time varying (reverb) or   */
  8. /*  non-critical (????) applications.      */
  9. /*******************************************/
  10.  
  11. #if !defined(__DLineN_h)
  12. #define __DLineN_h
  13.  
  14. #include "Filter.h"
  15.  
  16. class DLineN : public Filter
  17. {
  18.   protected:  
  19.     long inPoint;
  20.     long outPoint;
  21.     long length;
  22.   public:
  23.     DLineN(long max_length);  
  24.     ~DLineN();  
  25.     void clear();
  26.     void setDelay(MY_FLOAT length);
  27.     MY_FLOAT tick(MY_FLOAT sample);
  28. };
  29.  
  30. #endif
  31.