Debian Codegraph @

lib-src/libnyquist/nyquist/nyqstk/include/NRev.h

raw
1 /***************************************************/
2 /*! \class NRev
3 \brief CCRMA's NRev reverberator class.
4
5 This class is derived from the CLM NRev
6 function, which is based on the use of
7 networks of simple allpass and comb delay
8 filters. This particular arrangement consists
9 of 6 comb filters in parallel, followed by 3
10 allpass filters, a lowpass filter, and another
11 allpass in series, followed by two allpass
12 filters in parallel with corresponding right
13 and left outputs.
14
15 by Perry R. Cook and Gary P. Scavone, 1995 - 2005.
16 */
17 /***************************************************/
18
19 #ifndef STK_NREV_H
20 #define STK_NREV_H
21
22 #include "Effect.h"
23 #include "Delay.h"
24
25 namespace Nyq
26 {
27
28 class NRev : public Effect
29 {
30 public:
31 //! Class constructor taking a T60 decay time argument (one second default value).
32 NRev( StkFloat T60 = 1.0 );
33
34 //! Class destructor.
35 ~NRev();
36
37 //! Reset and clear all internal state.
38 void clear();
39
40 //! Set the reverberation T60 decay time.
41 void setT60( StkFloat T60 );
42
43 protected:
44
45 StkFloat computeSample( StkFloat input );
46
47 Delay allpassDelays_[8];
48 Delay combDelays_[6];
49 StkFloat allpassCoefficient_;
50 StkFloat combCoefficient_[6];
51 StkFloat lowpassState_;
52
53 };
54
55 } // namespace Nyq
56
57 #endif
58