csl::Scalable Class Reference

#include <CSL_Core.h>

Inheritance diagram for csl::Scalable:

csl::Controllable csl::Envelope csl::Filter csl::Freeverb csl::KarplusString csl::LPCFilter csl::Mixer csl::Noise csl::Oscillator csl::Panner csl::RingBuffer csl::RingBufferTap csl::SineAsScaled csl::SpatialSource

List of all members.

Public Member Functions

 Scalable ()
 Constructors.
 Scalable (float scale)
 use the given static scale
 Scalable (float scale, float offset)
 use the given static scale & offset
 Scalable (UnitGenerator &scale, float offset)
 use the given dynamic scale & static offset
 Scalable (UnitGenerator &scale, UnitGenerator &offset)
 use the given dynamic scale & offset
 ~Scalable ()
 Destructor.
void setScale (UnitGenerator &scale)
 set the receiver's scale member to a UGen or a float
void setScale (float scale)
void setOffset (UnitGenerator &offset)
 set the receiver's offset member to a UGen or a float
void setOffset (float offset)


Detailed Description

Scalable -- mix-in class with scale and offset control inputs (may be constants or generators). This uses the mInput map keys CSL_SCALE and CSL_OFFSET. Most actual unit generators inherit this as well as UnitGenerator. We use Controllable as a virtual superclass so that we can mix it in twice (in classes that are also Phased)

Constructor & Destructor Documentation

Scalable::Scalable (  ) 

Scalable::Scalable ( float  scale  ) 

Scalable::Scalable ( float  scale,
float  offset 
)

use the given static scale & offset

References csl::Controllable::addInput(), CSL_OFFSET, CSL_SCALE, and csl::logMsg().

Scalable::Scalable ( UnitGenerator scale,
float  offset 
)

use the given dynamic scale & static offset

References csl::Controllable::addInput(), CSL_OFFSET, CSL_SCALE, and csl::logMsg().

Scalable::Scalable ( UnitGenerator scale,
UnitGenerator offset 
)

use the given dynamic scale & offset

References csl::Controllable::addInput(), CSL_OFFSET, CSL_SCALE, and csl::logMsg().

Scalable::~Scalable (  ) 

Destructor.


Member Function Documentation

void Scalable::setScale ( UnitGenerator scale  ) 

void Scalable::setScale ( float  scale  ) 

void Scalable::setOffset ( UnitGenerator offset  ) 

void Scalable::setOffset ( float  offset  ) 


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