FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setParams()

void fl::audio::SynthOscillatorImpl::setParams ( const SynthParams & params)
overridevirtual

Change waveform parameters (takes effect at next cycle boundary)

Parameters
paramsCustom waveform parameters

Implements fl::audio::ISynthOscillator.

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

188 {
189 if (mHexWave) {
190 mCurrentParams = params;
191 hw::hexwave_change(
192 mHexWave,
193 params.reflect,
194 params.peakTime,
195 params.halfHeight,
196 params.zeroWait
197 );
198 }
199}

References fl::audio::SynthParams::halfHeight, mCurrentParams, mHexWave, fl::audio::SynthParams::peakTime, fl::audio::SynthParams::reflect, and fl::audio::SynthParams::zeroWait.

Referenced by setShape().

+ Here is the caller graph for this function: