<span style='font-family:Verdana'><span style='font-size:12px'>After a lot of experimenting over many years, I am at a loss for how I can achieve the following (without lots of "painful experimentation"):<br />
<br />
* normalize the RMS volume of a group of samples<br />
* max value of the loudest peak in the group doesn't exceed xxx db<br />
* no limiting/clipping/compression<br />
<br />
<br />
Imagine a (non-existent) command line such as:<br />
<br />
$ normalize-audio --rms --max-peak=xxxdb --as-lossless-as-possible<br />
<br />
<br />
note that with normalize-audio 0.7.7:<br />
<br />
$ normalize-audio --peak --no-adjust<br />
$ normalize-audio --no-adjust<br />
<br />
result in exactly the same output:<br />
<br />
<div>
         level peak gain </div>
<div>
        -44.9045dBFS -26.6550dBFS 32.9045dB china-22in_zildjian-1.wav </div>
<div>
        -36.0490dBFS -18.3966dBFS 24.0490dB china-22in_zildjian-2.wav </div>
<div>
        -33.1798dBFS -14.9723dBFS 21.1798dB china-22in_zildjian-3.wav </div>
<div>
        -25.6555dBFS -5.5081dBFS 13.6555dB china-22in_zildjian-4.wav </div>
<div>
        -18.4676dBFS -1.4021dBFS 6.4676dB china-22in_zildjian-5.wav </div>
<div>
        -17.8024dBFS -0.0540dBFS 5.8024dB china-22in_zildjian-6.wav</div>
<br />
In this case, the file with a peak of -0.054db is adjusted by +5.8db in both cases, resulting in clipping/limiting etc.<br />
<br />
<br />
<br />
<span id="editor_signature"><span style="font-family:Verdana; font-size:12px">Shane Richards</span></span>
<div>
        <span style="font-size:10px;"><span id="editor_signature"><span style="font-family: Verdana; ">Producer, Composer, Multi-instrumentalist</span></span></span></div>
<div>
        <span id="editor_signature"><span style="font-family:Verdana; font-size:12px">Josh Music</span></span></div>
<div>
        <span style="font-size:10px;"><span id="editor_signature"><span style="font-family: Verdana; ">shanerich@email.com</span></span></span></div>
<div>
        <span style="font-size:10px;"><span id="editor_signature"><span style="font-family: Verdana; ">www.josh.com.co</span></span></span></div>
<div>
        <span style="font-size:10px;"><span id="editor_signature"><span style="font-family: Verdana; ">www.shanerichardsmusic.com</span></span></span></div>
</span></span>