AGC - Automatic Gain Control

I’ve done some changes to the plugin to make it works with long sounds. Now it takes about 3 minutes for 100 minutes mono record on phenom x6. I am new with Nyquist so code review would be appreciated.
agc-new.ny (2.92 KB)