CSL  6.0
SimplePanner2.h
Go to the documentation of this file.
1 //
2 // SimplePanner.h -- Basic spatial panner using a front/rear filter.
3 // See the copyright notice and acknowledgment of authors in the file COPYRIGHT
4 //
5 
6 #ifndef CSL_SIMPLE_PANNER_H
7 #define CSL_SIMPLE_PANNER_H
8 
9 #include "CSL_Includes.h"
10 #include "SpatialPanner.h"
11 
12 namespace csl {
13 
14 /// Simple Panner
15 
16 class SimplePanner : public SpatialPanner {
17 public:
18  SimplePanner(); // Default constructor
19  ~SimplePanner();
20 
21  void addSource(SpatialSource &s); ///< Implement Panner's addSource, inserting a panner to each source.
22  void removeSource(SpatialSource &s); ///< Remove a sound source
23 
24  void nextBuffer(Buffer &outputBuffer /*, unsigned outBufNum */) throw (CException); ///< fill the buffer with the next buffer_length of values
25 
26 protected:
27  Mixer mDryMix; ///< direct (dry) send mixer
28  Mixer mRevMix; ///< reverb send mixer
29  Mixer mFiltMix; ///< LPF filter send mix
30 
31  Splitter mFiltSplit; ///< stereo-to-mono splitter (for filters)
32  Butter mRLPF; ///< left &
33  Butter mLLPF; ///< right lo-pass filters
34  Joiner mFiltJoin; ///< mono-to-stereo joiner (for filters)
35 
36  Stereoverb mReverb; ///< stereo freeverb
37  Mixer mOutMix; ///< master output mixer
38 
39  UGenIMap mPanners; ///< Vector of pointers to the panners
40  UGenIMap mFanOuts; ///< Vector of pointers to the fan-outs
41 
42 };
43 
44 } // end namespace
45 
46 #endif
Mixer mDryMix
direct send mixer
Definition: SimplePanner.h:27
UGenIMap mPanners
Vector of pointers to the panners.
Definition: SimplePanner2.h:39
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
Definition: Accessor.h:17
Mixer mRevMix
reverb send mixer
Definition: SimplePanner.h:29
Splitter mFiltSplit
stereo-to-mono splitter (for filters)
Definition: SimplePanner.h:31
Mixer mFiltMix
LPF filter send mix.
Definition: SimplePanner.h:28
Butter mLLPF
right lo-pass filters
Definition: SimplePanner.h:33
std::map< unsigned, UnitGenerator * > UGenIMap
Definition: CSL_Types.h:245
Joiner mFiltJoin
mono-to-stereo joiner (for filters)
Definition: SimplePanner.h:34
Stereoverb mReverb
stereo freeverb
Definition: SimplePanner.h:36
Butter mRLPF
left &
Definition: SimplePanner.h:32
UGenIMap mFanOuts
Vector of pointers to the fan-outs.
Definition: SimplePanner2.h:40
virtual void nextBuffer(Buffer &outputBuffer)
fill the buffer with the next buffer_length of values
SimplePanner()
Default constructor.
void removeSource(SpatialSource &s)
Remove a sound source.
Mixer mOutMix
master output mixer
Definition: SimplePanner.h:37
void addSource(SpatialSource &s)
Implement Panner's addSource, inserting a panner to each source.