![]() |
fsh::stk
fantastic spatial holophonic synthesis toolkit
|
Distortion/modulation effect class. More...
#include <Distortion.h>
Classes | |
struct | Params |
The parameters for the distortion effect. More... | |
Public Member Functions | |
void | setParams (const Params &) |
Sets the parameters for the distortion effect. | |
auto | processSample (float) const -> float |
Processes a single sample through the distortion effect. | |
Distortion/modulation effect class.
This class provides a simple distortion effect, which can be used to add harmonics to a signal. You can set the pre-gain and the distortion function, which is applied to the signal. By default, an atan function is used, which is a simple and effective way to add harmonics to a signal.