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

Public Member Functions

float getNextSample ()
 
float getNextSample (float fm)
 
float getPhase ()
 
virtual void getSamples (FloatArray output)
 
virtual void getSamples (FloatArray output, FloatArray fm)
 
void reset ()
 
void setFrequency (float freq)
 
void setPhase (float ph)
 
void setSampleRate (float sr)
 
 SineOscillator ()
 
 SineOscillator (float sr)
 

Static Public Member Functions

static SineOscillatorcreate (float sr)
 
static void destroy (SineOscillator *osc)
 

Detailed Description

Definition at line 6 of file SineOscillator.h.

Constructor & Destructor Documentation

SineOscillator::SineOscillator ( )
inline

Definition at line 12 of file SineOscillator.h.

References setSampleRate().

Referenced by create().

SineOscillator::SineOscillator ( float  sr)
inline

Definition at line 15 of file SineOscillator.h.

References setSampleRate().

Member Function Documentation

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

Definition at line 49 of file SineOscillator.h.

References SineOscillator().

static void SineOscillator::destroy ( SineOscillator osc)
inlinestatic

Definition at line 52 of file SineOscillator.h.

float SineOscillator::getNextSample ( )
inlinevirtual

Reimplemented from Oscillator.

Definition at line 35 of file SineOscillator.h.

References M_PI.

float SineOscillator::getNextSample ( float  fm)
inlinevirtual

Reimplemented from Oscillator.

Definition at line 42 of file SineOscillator.h.

References M_PI.

float SineOscillator::getPhase ( )
inline

Definition at line 32 of file SineOscillator.h.

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().

void SineOscillator::reset ( )
inlinevirtual

Reimplemented from Oscillator.

Definition at line 29 of file SineOscillator.h.

void SineOscillator::setFrequency ( float  freq)
inlinevirtual

Reimplemented from Oscillator.

Definition at line 21 of file SineOscillator.h.

void SineOscillator::setPhase ( float  ph)
inline

Definition at line 24 of file SineOscillator.h.

References M_PI.

void SineOscillator::setSampleRate ( float  sr)
inlinevirtual

Reimplemented from Oscillator.

Definition at line 18 of file SineOscillator.h.

References M_PI.

Referenced by SineOscillator().


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