csl::WavetableOscillator Class Reference

#include <Oscillator.h>

Inheritance diagram for csl::WavetableOscillator:

csl::Oscillator csl::UnitGenerator csl::Phased csl::Scalable csl::CompOrCacheOscillator csl::ImpulseBL csl::SquareBL csl::SumOfSines csl::TriangleBL List of all members.

Detailed Description

WavetableOscillator -- Oscillator with a stored wave table that does table look-up. The default wave table is an 8192-sample sine. (perhaps accept a vector of freqs and a multichannel buffer?)


Public Member Functions

 WavetableOscillator ()
 WavetableOscillator (Buffer &wave)
 WavetableOscillator (sample *samps, unsigned size)
 WavetableOscillator (Buffer &wave, float frequency)
 WavetableOscillator (Buffer &wave, float frequency, float phase)
 WavetableOscillator (float frequency, float ampl, float offset, float phase)
void setWaveform (Buffer &wave)
 plug in waveforms
void setWaveform (sample *samps, unsigned size)
void setInterpolate (InterpolationPolicy whether)
 set the interpolation flag
virtual void nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException)

Protected Member Functions

void fillSine ()
 fill the wavetable with 1 cycle of a sine wave

Protected Attributes

InterpolationPolicy mInterpolate
 whether/how I should interpolate between samples
Buffer mWavetable
 the stored wave form


Constructor & Destructor Documentation

WavetableOscillator::WavetableOscillator  ) 
 

WavetableOscillator::WavetableOscillator Buffer wave  ) 
 

WavetableOscillator::WavetableOscillator sample samps,
unsigned  size
 

WavetableOscillator::WavetableOscillator Buffer wave,
float  frequency
 

WavetableOscillator::WavetableOscillator Buffer wave,
float  frequency,
float  phase
 

WavetableOscillator::WavetableOscillator float  frequency,
float  ampl,
float  offset,
float  phase
 


Member Function Documentation

void WavetableOscillator::setWaveform Buffer wave  ) 
 

plug in waveforms

void WavetableOscillator::setWaveform sample samps,
unsigned  size
 

void csl::WavetableOscillator::setInterpolate InterpolationPolicy  whether  )  [inline]
 

set the interpolation flag

void WavetableOscillator::nextBuffer Buffer outputBuffer,
unsigned  outBufNum
throw (CException) [virtual]
 

Reimplemented in csl::CompOrCacheOscillator.

void WavetableOscillator::fillSine  )  [protected]
 

fill the wavetable with 1 cycle of a sine wave


Member Data Documentation

InterpolationPolicy csl::WavetableOscillator::mInterpolate [protected]
 

whether/how I should interpolate between samples

Buffer csl::WavetableOscillator::mWavetable [protected]
 

the stored wave form


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:20 2007 for CSL by  doxygen 1.4.5-20051010