csl::Phased Class Reference

#include <CSL_Core.h>

Inheritance diagram for csl::Phased:

csl::Controllable csl::KarplusString csl::Oscillator csl::SineAsPhased csl::SineAsScaled csl::Impulse csl::Sawtooth csl::Sine csl::Square csl::WavetableOscillator csl::WaveShaper csl::Abst_SoundFile csl::CompOrCacheOscillator csl::CASoundFile csl::JSoundFile csl::LSoundFile csl::SumOfSines csl::SquareBL

List of all members.

Public Member Functions

 Phased ()
 Constructors; this one is rearely used.
 Phased (float frequency, float phase=0)
 use the given dynamic frequency & phase
 Phased (UnitGenerator &frequency, float phase=0)
 use the given dynamic or static frequency
 ~Phased ()
 Destructor.
void setFrequency (UnitGenerator &frequency)
 Setter accessors.
void setFrequency (float frequency)
void setPhase (float phase)

Protected Attributes

float mPhase
 the actual phase accumulator


Detailed Description

Phased -- a mix-in for objects with phase accumulators (local float) and frequency controls (an input port). This puts an item named CSL_FREQUENCY in the Controllable parent mInputs map. We use Controllable as a virtual superclass so that we can mix it in twice (in classes that are also Scalable)

Constructor & Destructor Documentation

Phased::Phased (  ) 

Constructors; this one is rearely used.

References CSL_FREQUENCY, csl::logMsg(), and csl::Controllable::mInputs.

Phased::Phased ( float  frequency,
float  phase = 0 
)

use the given dynamic frequency & phase

References csl::Controllable::addInput(), CSL_FREQUENCY, and csl::logMsg().

Phased::Phased ( UnitGenerator frequency,
float  phase = 0 
)

use the given dynamic or static frequency

References csl::Controllable::addInput(), CSL_FREQUENCY, and csl::logMsg().

Phased::~Phased (  ) 

Destructor.


Member Function Documentation

void Phased::setFrequency ( UnitGenerator frequency  ) 

void Phased::setFrequency ( float  frequency  ) 

void csl::Phased::setPhase ( float  phase  )  [inline]

References mPhase.


Member Data Documentation

float csl::Phased::mPhase [protected]

the actual phase accumulator

Referenced by setPhase().


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