24 Mixer(
unsigned chans);
90 #define MAX_OUTPUTS 16
void init_quad(float dist)
void init_6ch(float x, float y)
virtual void nextBuffer(Buffer &outputBuffer)
I'm stereo!
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
Effect – mix-in for classes that have unit generators as inputs (like filters).
UGenVector mSources
mixers with inputs are always active
Buffer mOpBuffer
buffer used for operations, if needed
Panner()
Constructors / destructor.
UGenVector * getInputs(void)
void setWidth(float width)
void removeInput(UnitGenerator &inp)
bool hasScales
set to true if any of the scale values != 1.0
Scalable – mix-in class with scale and offset control inputs (may be constants or generators)...
void nextBuffer(Buffer &outputBuffer)
fill the buffer with the next buffer_length of values
bool isActive()
query whether I'm currently active (Envelopes can go inactive)
void dump()
print info about this instance
virtual unsigned numChannels() const
void setPosition(UnitGenerator &pan)
Operations.
FloatVector mScaleValues
scales of inputs
std::vector< float > FloatVector
A vector of floats.
void nextBuffer(Buffer &inputBuffer)
get a buffer of Frames – this is the core CSL "pull" function; the given buffer can be written into...
void allocateOpBuffer(unsigned chans)
allocate the op buffer
std::vector< UnitGenerator * > UGenVector
virtual void nextBuffer(Buffer &outputBuffer)
I'm stereo!
void init_5point1(float dist)
void scaleInput(UnitGenerator &inp, float val)
set the scale of an input
unsigned getNumInputs(void)
list of inputs, arbitrary # of channels
Stereo width processor – can mix stereo channels or subtract the sum from each to widen...
void init_stereo(float dist)
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
Mixer – The n-input m-channel mixer class.
The CSL mono-to-stereo L/R panner class.
void addInput(UnitGenerator &inp)
Base class of CSL exceptions (written upper-case). Has a string message.