Clip Fix version 4
Posted: Thu Jul 06, 2017 8:14 pm
I got quite a surprise when I used Clip Fix in the May 9 nightly of Audacity. Finally looked at the .ny file in an editor and noticed the version change from 1 to 4.
I'm accustomed to the peak amplitude usually (not always) increasing when I apply Clip Fix. Since Lookahead Limiter would just clip it again if it's >0dB, I normalize it using Amplify and save the (negative) gain setting so I can restore the region's amplitude after using Lookahead Limiter. That removes the abrupt amplitude change (i.e., the step in the waveform) that Amplify created at each end of the region.
Clip Fix version 4 appears to have an attempt at avoiding this overload in the processed waveform, but it goes way too far. I had a clipping event with peak amplitude of +0.016 before applying Clip Fix. If I use version 1, the result has peak amplitude of +0.459. If I use version 4, the resultant peak is -8.5dB with the rest of the region likewise attenuated. It left steps in the waveform at both ends of the selection.
I believe my rather laborious procedure outlined above does a very good job. If Clip Fix (version 5?) produces the same result in one click, I'll be very happy with it.
Here's my procedure in more detail:
1: Apply Clip Fix (version 1);
2: Use Amplify to normalize the amplitude to 0dB. Before clicking OK, save the automatic gain setting on the clipboard;
3: Apply Lookahead Limiter (set "Limit To dB" to the value from the clipboard (which will be negative), unless that leaves a higher peak than you want to allow.);
4: Apply Amplify again, with Gain set from the clipboard and the '-' sign removed.
Due to the soft knee in Lookahead Limiter when Limit To is set below about -5dB, depending on the amount of limiting needed there may still be a step in the waveform due to Lookahead Limiter reducing the amplitude at the ends of the region. If this happens (or I anticipate it), I widen the region before Step 2 to situate the ends at much lower amplitudes.
There should also be a setting for desired maximum peak amplitude since, for Clip Fix to work reliably, it must be applied before any equalization and the user might want to leave some headroom for that.
I'm accustomed to the peak amplitude usually (not always) increasing when I apply Clip Fix. Since Lookahead Limiter would just clip it again if it's >0dB, I normalize it using Amplify and save the (negative) gain setting so I can restore the region's amplitude after using Lookahead Limiter. That removes the abrupt amplitude change (i.e., the step in the waveform) that Amplify created at each end of the region.
Clip Fix version 4 appears to have an attempt at avoiding this overload in the processed waveform, but it goes way too far. I had a clipping event with peak amplitude of +0.016 before applying Clip Fix. If I use version 1, the result has peak amplitude of +0.459. If I use version 4, the resultant peak is -8.5dB with the rest of the region likewise attenuated. It left steps in the waveform at both ends of the selection.
I believe my rather laborious procedure outlined above does a very good job. If Clip Fix (version 5?) produces the same result in one click, I'll be very happy with it.
Here's my procedure in more detail:
1: Apply Clip Fix (version 1);
2: Use Amplify to normalize the amplitude to 0dB. Before clicking OK, save the automatic gain setting on the clipboard;
3: Apply Lookahead Limiter (set "Limit To dB" to the value from the clipboard (which will be negative), unless that leaves a higher peak than you want to allow.);
4: Apply Amplify again, with Gain set from the clipboard and the '-' sign removed.
Due to the soft knee in Lookahead Limiter when Limit To is set below about -5dB, depending on the amount of limiting needed there may still be a step in the waveform due to Lookahead Limiter reducing the amplitude at the ends of the region. If this happens (or I anticipate it), I widen the region before Step 2 to situate the ends at much lower amplitudes.
There should also be a setting for desired maximum peak amplitude since, for Clip Fix to work reliably, it must be applied before any equalization and the user might want to leave some headroom for that.