saturator

Files: saturator.h, saturator.c

Soft clip saturating distortion, based on examples from Abel/Berners' Music 424 course at Stanford.

Functions

sp_saturator_create(sp_saturator **saturator)
sp_saturator_init(sp_data *sp, sp_saturator *saturator)
sp_saturator_compute(sp_data *sp, sp_saturator *saturator, SPFLOAT *in, SPFLOAT *out)
sp_saturator_destroy(sp_saturator **saturator)

Optional Parameters

drive: Input gain into the distortion section, in decibels. Controls overall amount of distortion.
(Default value: 1)
dcoffset: Constant linear offset applied to the signal. A small offset will introduce odd harmonics into the distoration spectrum, whereas a zero offset will have only even harmonics.
(Default value: 0)

Inputs

in: input.

Outputs

out: output.