FastLED 3.9.15
Loading...
Searching...
No Matches
fl::audio::SynthParams Struct Reference

Detailed Description

Waveform parameters for custom waveforms.

Definition at line 68 of file synth.h.

#include <synth.h>

Public Member Functions

 SynthParams () FL_NOEXCEPT=default
 Default constructor - sawtooth wave.
 
 SynthParams (i32 reflect, float peakTime, float halfHeight, float zeroWait)
 Full parameter constructor.
 

Static Public Member Functions

static SynthParams fromShape (SynthShape shape)
 Create parameters for a predefined shape.
 

Public Attributes

float halfHeight = 0.0f
 Height at half-cycle point.
 
float peakTime = 0.0f
 Position of peak in cycle [0..1].
 
i32 reflect = 1
 Mirror second half of waveform (0 or 1)
 
float zeroWait = 0.0f
 Wait time at zero [0..1].
 

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