@Nofish
Works great for samples longer than 400ms
Below 400ms you get crazy results, as with most other tools.
One method I have see before (Alto does this to get an integrated value) is to loop the files beyond 400ms, do the analysis, restore the length and then apply the gain change. So maybe something like that could help.
In any case, this will save us a lot of time even as it is. Thanks