A complex oscillator is a MultiSignalGenerator with 2 channels that operates at a given frequency and that can be frequency modulated.
More...
A complex oscillator is a MultiSignalGenerator with 2 channels that operates at a given frequency and that can be frequency modulated.
A single sample is represented as a ComplexFloat value, while blocks of audio are stored in an AudioBuffer with 2 channels.
Definition at line 14 of file ComplexOscillator.h.
◆ ComplexOscillator()
ComplexOscillator::ComplexOscillator |
( |
| ) |
|
|
default |
◆ ~ComplexOscillator()
virtual ComplexOscillator::~ComplexOscillator |
( |
| ) |
|
|
virtualdefault |
◆ generate() [1/5]
◆ generate() [2/5]
virtual void ComplexSignalGenerator::generate |
|
inlinevirtual |
◆ generate() [3/5]
◆ generate() [4/5]
◆ generate() [5/5]
virtual ComplexFloat ComplexOscillator::generate |
( |
float |
fm | ) |
|
|
pure virtual |
Produce a sample with frequency modulation.
◆ getFrequency()
virtual float ComplexOscillator::getFrequency |
( |
| ) |
|
|
pure virtual |
Get oscillator frequency in Hertz.
◆ getPhase()
virtual float ComplexOscillator::getPhase |
( |
| ) |
|
|
pure virtual |
Get current oscillator phase in radians.
- Returns
- a value between 0 and 2*pi
◆ reset()
virtual void ComplexOscillator::reset |
( |
| ) |
|
|
pure virtual |
Reset oscillator (typically resets phase)
◆ setFrequency()
virtual void ComplexOscillator::setFrequency |
( |
float |
value | ) |
|
|
pure virtual |
Set oscillator frequency in Hertz.
◆ setPhase()
virtual void ComplexOscillator::setPhase |
( |
float |
phase | ) |
|
|
pure virtual |
Set current oscillator phase in radians.
- Parameters
-
phase | a value between 0 and 2*pi |
◆ setSampleRate()
virtual void ComplexOscillator::setSampleRate |
( |
float |
value | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: