electro-smith / DaisySP

A Powerful DSP Library in C++
https://www.electro-smith.com/daisy
Other
839 stars 132 forks source link

Overdrive module #105

Closed beserge closed 3 years ago

AXP commented 3 years ago

The whole postgain value inside the Process() function is constant with respect to the input. It is also over-complicated given that its only purpose is empirical loudness equalization. It should be calculated once in SetDrive() and maybe simplified.

beserge commented 3 years ago

@AXP Good catch! I've moved the recalc to SetDrive().

stephenhensley commented 3 years ago

I moved the SoftLimit, and SoftClip functions to dsp.h (limiter already used one of them). With all the MI ports I figure it'll become a commonly used function.