1
/*******************************************/
3
Non-Interpolating Delay Line
4
Object by Perry R. Cook 1995-96.
5
Revised by Gary Scavone, 1999.
6
Added methods by Julius Smith, 2000.
8
This one uses either a delay line of
9
maximum length specified on creation
10
or a default length of 2047 samples.
11
A non-interpolating delay line is
12
typically used in non-time varying
13
(reverb) applications.
15
/*******************************************/
17
#if !defined(__DLineN_h)
22
class DLineN : public Filter
28
MY_FLOAT currentDelay;
31
DLineN(long max_length);
34
void setDelay(MY_FLOAT length);
35
MY_FLOAT energy(void);
36
long currentInPoint(void);
37
long currentOutPoint(void);
38
MY_FLOAT contentsAt(int n);
39
MY_FLOAT contentsAtNowMinus(int n);
41
MY_FLOAT tick(MY_FLOAT sample);