mirror of
https://github.com/thestk/stk
synced 2026-01-14 21:41:53 +00:00
36 lines
871 B
C++
36 lines
871 B
C++
/*******************************************/
|
|
/* Non-Interpolating Delay Line */
|
|
/* Object by Perry R. Cook 1995-96. */
|
|
/* Revised by Gary Scavone, 1999. */
|
|
/* */
|
|
/* This one uses either a delay line of */
|
|
/* maximum length specified on creation */
|
|
/* or a default length of 2048 samples. */
|
|
/* A non-interpolating delay line is */
|
|
/* typically used in non-time varying */
|
|
/* (reverb) applications. */
|
|
/*******************************************/
|
|
|
|
#if !defined(__DLineN_h)
|
|
#define __DLineN_h
|
|
|
|
#include "Filter.h"
|
|
|
|
class DLineN : public Filter
|
|
{
|
|
protected:
|
|
long inPoint;
|
|
long outPoint;
|
|
long length;
|
|
public:
|
|
DLineN();
|
|
DLineN(long max_length);
|
|
~DLineN();
|
|
void clear();
|
|
void setDelay(MY_FLOAT length);
|
|
MY_FLOAT tick(MY_FLOAT sample);
|
|
};
|
|
|
|
#endif
|
|
|