OpenWareLaboratory
ChirpOscillator Class Reference
Inheritance diagram for ChirpOscillator:
Collaboration diagram for ChirpOscillator:

Public Member Functions

 ChirpOscillator (float sr)
 
virtual float getNextSample (float fm)
 
float getNextSample ()
 
virtual void getSamples (FloatArray output)
 
virtual void getSamples (FloatArray output, FloatArray fm)
 
virtual void reset ()
 
void setDecay (float d)
 Set expontential decay rate. More...
 
void setFrequency (float freq)
 
void setRate (float r)
 
virtual void setSampleRate (float value)
 
void trigger ()
 

Static Public Member Functions

static ChirpOscillatorcreate (float sr)
 
static void destroy (ChirpOscillator *osc)
 

Data Fields

float rate
 

Detailed Description

Definition at line 6 of file ChirpOscillator.h.

Constructor & Destructor Documentation

ChirpOscillator::ChirpOscillator ( float  sr)
inline

Definition at line 13 of file ChirpOscillator.h.

Referenced by create().

Member Function Documentation

static ChirpOscillator* ChirpOscillator::create ( float  sr)
inlinestatic

Definition at line 43 of file ChirpOscillator.h.

References ChirpOscillator().

static void ChirpOscillator::destroy ( ChirpOscillator osc)
inlinestatic

Definition at line 46 of file ChirpOscillator.h.

virtual float Oscillator::getNextSample ( float  fm)
inlinevirtualinherited

Reimplemented in RampOscillator, and SineOscillator.

Definition at line 11 of file Oscillator.h.

float ChirpOscillator::getNextSample ( )
inlinevirtual

Reimplemented from Oscillator.

Definition at line 34 of file ChirpOscillator.h.

References rate.

virtual void Oscillator::getSamples ( FloatArray  output)
inlinevirtualinherited
virtual void Oscillator::getSamples ( FloatArray  output,
FloatArray  fm 
)
inlinevirtualinherited

Reimplemented in PolyBlepOscillator.

Definition at line 17 of file Oscillator.h.

References Oscillator::getNextSample(), and FloatArray::getSize().

virtual void Oscillator::reset ( )
inlinevirtualinherited

Reimplemented in RampOscillator, and SineOscillator.

Definition at line 23 of file Oscillator.h.

void ChirpOscillator::setDecay ( float  d)
inline

Set expontential decay rate.

Definition at line 28 of file ChirpOscillator.h.

References setRate().

void ChirpOscillator::setFrequency ( float  freq)
inlinevirtual

Reimplemented from Oscillator.

Definition at line 15 of file ChirpOscillator.h.

References M_PI.

void ChirpOscillator::setRate ( float  r)
inline

Definition at line 18 of file ChirpOscillator.h.

References rate.

Referenced by setDecay().

virtual void Oscillator::setSampleRate ( float  value)
inlinevirtualinherited
void ChirpOscillator::trigger ( )
inline

Definition at line 31 of file ChirpOscillator.h.

Field Documentation

float ChirpOscillator::rate

Definition at line 12 of file ChirpOscillator.h.

Referenced by getNextSample(), and setRate().


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