anthonyalfimov / Stable-Delay

AU, VST3. A WIP delay/chorus/flanger plugin
GNU General Public License v3.0
3 stars 1 forks source link

Add output soft clipping #28

Closed anthonyalfimov closed 3 years ago

anthonyalfimov commented 3 years ago

To make it safer to experiment with the plugin, consider adding a soft clipping stage at the very end of the signal chain of the plugin.

It should probably clip somewhat above 0 dBFS and remain as linear as possible up to 0 dBFS.

Output clipping should be optional.

anthonyalfimov commented 3 years ago

Output saturation / soft clipping would be more usable if it was placed before the output gain stage. Then, the input gain will be used to drive the signal into it.

The output meters will be permanently fixed in the "Clipping" mode. The input meters will indicate the saturation amount for the input signal (driving both the delay line and the the output soft clipper).

The only saturation type that the input meters won't be able to visualise is the saturation of the runaway feedback (over 100%). This can be handled by a separate saturation indicator for the delay line #35, or omitted all together.

anthonyalfimov commented 3 years ago

Implemented pre-output gain soft clipping using the custom "gamma" curve. Curve is steep enough that level loss on signals below 0 dBFS is not significant.