This updated version is a bit more efficient, and for smoothing it uses Hann windows (raised cosine) with 2/3 overlap for smoother gain changes.
I’ve also disabled the “Gain reaction speed” control as a setting of 0.5 seconds works pretty well in most cases. To enable this control, see line 12 in the plug-in code.
agc.ny (2.94 KB)