FastLED 3.9.15
Loading...
Searching...
No Matches
fl::audio::SynthOscillatorImpl Class Reference

Detailed Description

Definition at line 53 of file synth.cpp.hpp.

#include <synth.cpp.hpp>

+ Inheritance diagram for fl::audio::SynthOscillatorImpl:
+ Collaboration diagram for fl::audio::SynthOscillatorImpl:

Public Member Functions

 SynthOscillatorImpl (const SynthOscillatorImpl &) FL_NOEXCEPT=delete
 
 SynthOscillatorImpl (fl::shared_ptr< SynthEngineImpl > engine, const SynthParams &params)
 
 ~SynthOscillatorImpl () FL_NOEXCEPT override
 
void generateSamples (fl::span< float > output, float freq) override
 Generate audio samples (span version)
 
void generateSamples (float *output, i32 numSamples, float freq) override
 Generate audio samples.
 
ISynthEnginePtr getEngine () const override
 Get the engine this oscillator uses.
 
SynthParams getParams () const override
 Get current waveform parameters.
 
SynthOscillatorImploperator= (const SynthOscillatorImpl &) FL_NOEXCEPT=delete
 
void reset () override
 Reset oscillator to beginning of cycle.
 
void setParams (const SynthParams &params) override
 Change waveform parameters (takes effect at next cycle boundary)
 
void setShape (SynthShape shape) override
 Change waveform shape (takes effect at next cycle boundary)
 
- Public Member Functions inherited from fl::audio::ISynthOscillator
virtual ~ISynthOscillator () FL_NOEXCEPT=default
 

Private Attributes

SynthParams mCurrentParams
 
fl::shared_ptr< SynthEngineImplmEngine
 
hw::HexWave * mHexWave = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from fl::audio::ISynthOscillator
static ISynthOscillatorPtr create (ISynthEnginePtr engine, const SynthParams &params)
 Factory function to create an oscillator with specified engine and parameters.
 
static ISynthOscillatorPtr create (ISynthEnginePtr engine, SynthShape shape=SynthShape::Sawtooth)
 Factory function to create an oscillator with specified engine and shape.
 

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