csl::Mixer Class Reference

#include <Mixer.h>

Inheritance diagram for csl::Mixer:

csl::UnitGenerator csl::Scalable csl::Model csl::Controllable

List of all members.

Public Member Functions

 Mixer ()
 Constructors.
 Mixer (unsigned chans)
 Mixer (UnitGenerator &mScale)
 Mixer (unsigned chans, UnitGenerator &mScale)
virtual ~Mixer ()
UGenVector getInputs (void)
unsigned getNumInputs (void)
 list of inputs, arbitrary # of channels
void addInput (UnitGenerator &inp)
 add/remove inputs
void addInput (UnitGenerator *inp)
void removeInput (UnitGenerator &inp)
void deleteInputs ()
void nextBuffer (Buffer &outputBuffer) throw (CException)
 fill the buffer with the next buffer_length of values
void dump ()
 print info about this instance
unsigned activeSources ()

Protected Member Functions

void allocateOpBuffer (unsigned chans)
 allocate the op buffer

Protected Attributes

UGenVector mSources
 list of inputs, arbitrary # of channels
Buffer mOpBuffer
 buffer used for operations, if needed


Detailed Description

Mixer -- The n-input m-channel mixer class

This is like a binary operator, except that it has an array of inputs and cycles through them for each output buffer. Clients can add and remove inputs at run-time.


Constructor & Destructor Documentation

Mixer::Mixer (  ) 

Constructors.

References allocateOpBuffer(), and csl::UnitGenerator::mNumChannels.

Mixer::Mixer ( unsigned  chans  ) 

References allocateOpBuffer().

Mixer::Mixer ( UnitGenerator mScale  ) 

References allocateOpBuffer().

Mixer::Mixer ( unsigned  chans,
UnitGenerator mScale 
)

References allocateOpBuffer().

Mixer::~Mixer (  )  [virtual]


Member Function Documentation

UGenVector csl::Mixer::getInputs ( void   )  [inline]

References mSources.

unsigned csl::Mixer::getNumInputs ( void   )  [inline]

list of inputs, arbitrary # of channels

References mSources.

void Mixer::addInput ( UnitGenerator inp  ) 

add/remove inputs

number of active inputs

References mSources.

Referenced by main(), testManyDynamicFilters(), and testMultiTap().

void Mixer::addInput ( UnitGenerator inp  ) 

References mSources.

void Mixer::removeInput ( UnitGenerator inp  ) 

References mSources.

void Mixer::deleteInputs (  ) 

References mSources.

Referenced by testManyDynamicFilters().

void Mixer::nextBuffer ( Buffer outputBuffer  )  throw (CException) [virtual]

void Mixer::dump ( void   )  [virtual]

print info about this instance

Reimplemented from csl::UnitGenerator.

References mSources.

unsigned Mixer::activeSources (  ) 

void Mixer::allocateOpBuffer ( unsigned  chans  )  [protected]


Member Data Documentation

list of inputs, arbitrary # of channels

Referenced by activeSources(), addInput(), deleteInputs(), dump(), getInputs(), getNumInputs(), and removeInput().

buffer used for operations, if needed

Referenced by allocateOpBuffer(), and ~Mixer().


The documentation for this class was generated from the following files:

Generated on Thu Sep 17 23:14:17 2009 for CSL by  doxygen 1.5.8