Debian Codegraph @

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

raw
1 /***************************************************/
2 /*! \class Chorus
3 \brief STK chorus effect class.
4
5 This class implements a chorus effect.
6
7 by Perry R. Cook and Gary P. Scavone, 1995 - 2005.
8 */
9 /***************************************************/
10
11 #ifndef STK_CHORUS_H
12 #define STK_CHORUS_H
13
14 #include "Effect.h"
15 #include "DelayL.h"
16 #include "SineWave.h"
17
18 namespace Nyq
19 {
20
21 class Chorus : public Effect
22 {
23 public:
24 //! Class constructor, taking the median desired delay length.
25 /*!
26 An StkError can be thrown if the rawwave path is incorrect.
27 */
28 Chorus( StkFloat baseDelay = 6000 );
29
30 //! Class destructor.
31 ~Chorus();
32
33 //! Reset and clear all internal state.
34 void clear();
35
36 //! Set modulation depth.
37 void setModDepth(StkFloat depth);
38
39 //! Set modulation frequency.
40 void setModFrequency(StkFloat frequency);
41
42 protected:
43
44 StkFloat computeSample( StkFloat input );
45
46 DelayL delayLine_[2];
47 SineWave mods_[2];
48 StkFloat baseLength_;
49 StkFloat modDepth_;
50
51 };
52
53 } // namespace Nyq
54
55 #endif
56