fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
fsh::fx::Distortion Class Reference

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.
 

Detailed Description

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.


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