virtual ~ISynthEngine() FL_NO_EXCEPT=default
virtual i32 getOversample() const FL_NO_EXCEPT=0
Get the oversample setting.
virtual bool isValid() const FL_NO_EXCEPT=0
Check if engine was initialized successfully.
static ISynthEnginePtr create(i32 width=32, i32 oversample=16) FL_NO_EXCEPT
Factory function to create an engine with the specified quality settings.
virtual i32 getWidth() const FL_NO_EXCEPT=0
Get the width setting.
Interface for synth engine that holds BLEP/BLAMP tables.
virtual void setShape(SynthShape shape) FL_NO_EXCEPT=0
Change waveform shape (takes effect at next cycle boundary)
virtual ~ISynthOscillator() FL_NO_EXCEPT=default
virtual SynthParams getParams() const FL_NO_EXCEPT=0
Get current waveform parameters.
virtual void reset() FL_NO_EXCEPT=0
Reset oscillator to beginning of cycle.
virtual ISynthEnginePtr getEngine() const FL_NO_EXCEPT=0
Get the engine this oscillator uses.
virtual void generateSamples(float *output, i32 numSamples, float freq) FL_NO_EXCEPT=0
Generate audio samples.
virtual void setParams(const SynthParams ¶ms) FL_NO_EXCEPT=0
Change waveform parameters (takes effect at next cycle boundary)
Interface class for synth oscillator.
SynthShape
Predefined waveform shapes for synth oscillator.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Base definition for an LED controller.
#define FASTLED_SHARED_PTR(type)
static SynthParams fromShape(SynthShape shape) FL_NO_EXCEPT
Create parameters for a predefined shape.
float peakTime
Position of peak in cycle [0..1].
float halfHeight
Height at half-cycle point.
SynthParams() FL_NO_EXCEPT=default
Default constructor - sawtooth wave.
float zeroWait
Wait time at zero [0..1].
i32 reflect
Mirror second half of waveform (0 or 1)
Waveform parameters for custom waveforms.