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

Public Member Functions

virtual float getNextSample (float fm)
 
float getNextSample ()
 
void getSamples (FloatArray output)
 
void getSamples (FloatArray output, FloatArray frequency)
 
 PolyBlepOscillator (float sr=48000.0)
 
virtual void reset ()
 
void setFrequency (float value)
 
void setPulseWidth (float value)
 set square wave pulse width: 0.0 to 1.0 for 0% to 100% More...
 
void setSampleRate (float value)
 
void setShape (float value)
 set waveform shape: 0.0 for saw, 1.0 for square wave More...
 

Static Public Member Functions

static PolyBlepOscillatorcreate (float sr)
 
static void destroy (PolyBlepOscillator *osc)
 

Detailed Description

Definition at line 8 of file PolyBlepOscillator.h.

Constructor & Destructor Documentation

PolyBlepOscillator::PolyBlepOscillator ( float  sr = 48000.0)

Definition at line 4 of file PolyBlepOscillator.cpp.

Referenced by create().

Member Function Documentation

PolyBlepOscillator * PolyBlepOscillator::create ( float  sr)
static

Definition at line 43 of file PolyBlepOscillator.cpp.

References PolyBlepOscillator().

void PolyBlepOscillator::destroy ( PolyBlepOscillator osc)
static

Definition at line 47 of file PolyBlepOscillator.cpp.

virtual float Oscillator::getNextSample ( float  fm)
inlinevirtualinherited

Reimplemented in RampOscillator, and SineOscillator.

Definition at line 11 of file Oscillator.h.

float PolyBlepOscillator::getNextSample ( )
virtual

Reimplemented from Oscillator.

Definition at line 28 of file PolyBlepOscillator.cpp.

void PolyBlepOscillator::getSamples ( FloatArray  output)
virtual

Reimplemented from Oscillator.

Definition at line 34 of file PolyBlepOscillator.cpp.

References FloatArray::getSize().

void PolyBlepOscillator::getSamples ( FloatArray  output,
FloatArray  frequency 
)
virtual

Reimplemented from Oscillator.

Definition at line 38 of file PolyBlepOscillator.cpp.

References FloatArray::getSize(), and FloatArray::multiply().

virtual void Oscillator::reset ( )
inlinevirtualinherited

Reimplemented in RampOscillator, and SineOscillator.

Definition at line 23 of file Oscillator.h.

void PolyBlepOscillator::setFrequency ( float  value)
virtual

Reimplemented from Oscillator.

Definition at line 16 of file PolyBlepOscillator.cpp.

void PolyBlepOscillator::setPulseWidth ( float  value)

set square wave pulse width: 0.0 to 1.0 for 0% to 100%

Definition at line 24 of file PolyBlepOscillator.cpp.

void PolyBlepOscillator::setSampleRate ( float  value)
virtual

Reimplemented from Oscillator.

Definition at line 12 of file PolyBlepOscillator.cpp.

void PolyBlepOscillator::setShape ( float  value)

set waveform shape: 0.0 for saw, 1.0 for square wave

Definition at line 20 of file PolyBlepOscillator.cpp.


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