Thank you both for your replies!
Gale Andrews wrote:If you are asking that Repair or something like if should run on longer selections, that's a popular request.
No, but that certainly could be useful. If anyone's interested, though, I have an idea (obvious, perhaps) for a workaround for selections longer than 128 samples:
1) Downsample the original track (track A) just enough so that the section in need of repair becomes less than or equal to 128 samples in length. Call the downsampled result track B.
2) Repair the damaged section in track B.
3) Upsample track B to its original rate.
4) Take the repaired section from 3) and overwrite the corresponding section in track A.
5) If necessary, repair the two boundaries where the overwriting in 4) took place.
Of course, some of the higher frequencies will be lost in the repaired section, but it may be acceptable.
Personally I find Repair inferior to ClipFix if you were trying to repair by dragging adjacent sections of 128 samples back on each other. Clip Fix seems to me to give a much more musical result and the waveform retains its original shape and dynamics below the peaks to a greater extent.
I select each clipped region by hand and use "Effects"->"Repair." I don't do any dragging.
Are you de-amplifying by a sufficient amount before using Clip Fix?
Yes, although when working with 32-bit samples, I believe one only has to de-amplify afterwards so that the recovered peaks are no longer clipped.
It is known however that Clip Fix cannot cope with clipping that is so bad that the polarity is inverted. There is an experimental version of it (only for mono tracks) that tries to cope with inverted polarity
here .
That's not an issue for me, but thanks.
-------------------------
steve wrote:For ClipFix there is the additional problem that it has to accurately detect where the clipping occurs as well as fixing it. "Repair" does not need to do that because it assumes that you have selected the damage. For "digital" clipping where peaks are cut off absolutely flat Clipfix can detect the clipping quite well. If the clipping is due to overloading of analogue components, or if the audio has been saved in MP3 format, or if for any other reason the clipping is not simple "digital" clipping, then detecting is very much harder and ClipFix will probably fail.
I'm dealing only with digital clipping, so Clip Fix finds the clipped regions sufficiently well for my purposes.
The best thing (by far) is to avoid getting clipping in the first place by recording with appropriate equipment and appropriate settings. If these are your own recordings, please describe what and how you are recording and we can try and give some tips about how to avoid distortion.
The recordings I'm dealing with are simply tracks ripped from purchased CD albums.
-------------------------
I've prepared a simple example that shows how, in my opinion, the interpolation of "Effects"->"Repair" is vastly superior to that of "Effects"->"Clip Fix."
In my example, you'll notice six tracks:
1) Original track
2) Original track with +dB of clipping
3) Clipped track with -3dB of amplification
4) Result of "Effects"->"Clip Fix"
5) Result of "Effects"->"Repair"
6) Result of "Effects"->"Repair" applied four times in an iterative fashion.
I think the results speak for themselves.
Also, you'll notice I did something special with track 6, which provides the best results (in fact, almost perfect). On each iteration, I used "Effects"->"Repair" left to right on each of the original damaged sections. Each new iteration is an improvement over the previous iteration when multiple clipped sections are close to each other.
Again, all is well and good when I only have to repair a small number of clipped sections, but it's not uncommon to find a clipped CD track with thousands of clipped sections. In this case, it would take days of tedious work to repair so many sections. However, I have verified that "Effects"->"Repair" gives very good results as I have repaired just a few seconds of a clipped track (which took me about half an hour), whereas "Effects"->"Clip Fix" was no help and sometimes makes things worse.