How to Fix Clipped Audio in an AI Song
How to spot clipping in an AI-generated song, what causes it, what restoration can and cannot repair, and how to check true peak before and after the fix.
Clipping happens when a waveform goes past the digital ceiling of 0 dBFS and its peaks are cut flat. The flat tops add harsh distortion, heard as crackle or fuzz on the loudest hits. A short clipped moment can sometimes be rebuilt by a declipping algorithm. A long or heavy clip cannot be restored to the original waveform, only made less audible.
This guide shows how to recognise clipping, why it happens in AI-generated songs, what repair can and cannot fix, and the order of steps that keeps the damage smallest.
How to recognise clipping
Clipping is easy to miss by ear, so look and measure:
- On the waveform, zoom into the loudest hits. A clipped peak looks like a flat plateau that runs over several samples.
- In the numbers, a run of consecutive samples at exactly the same maximum value is a sign of hard clipping.
- On the meters, check both sample peak and true peak. A file can look fine on the sample meter and still clip after conversion, because the reconstructed wave rises between samples. True peak explains why.
- By ear, clipping adds crackle, fuzz or a harsh edge on kicks, snares and loud vocal consonants.
Clipping sounds harsh because flattening a wave adds harmonics the original did not contain. Those new components are sharp, unlike the smooth distortion of analogue saturation, and that is why a clipped kick or snare sounds rough rather than warm. If you are unsure, solo the loudest section and listen to it alone.
Why AI-generated songs clip
Clipping is not special to AI. It comes from the chain a song passes through. The usual causes are:
- A file normalised to 0 dBFS and exported as it is, with peaks sitting on the ceiling.
- Gain added to a loud file. If the downloaded file is already near full scale, any extra gain will clip.
- A stack of loudness tools, such as a maximiser, a saturator and a limiter, with the ceiling set above −1 dBTP.
- Repeated lossy encoding. A file converted to MP3 or AAC can gain overs that were not in the source, and a second encode can add more.
The difference from a recording is that you cannot re-record a generated part. A new generation changes the whole song, and repair changes only the damaged part. So the cheapest fix is usually upstream: lower the level before you process the file. If you master a generated track yourself, the limiter is the last place to look. It can only lower what it receives, and it raises the damage along with the music.
What repair can and cannot fix
| Situation | Realistic repair | Limit |
|---|---|---|
| A few overs on single peaks | Lower the gain and limit to −1 dBTP | Usually a small change, no reconstruction needed |
| Short flat tops, a few samples long | Interpolation or declipping can rebuild a plausible peak | The rebuilt shape is an estimate, not the original |
| Long flat stretches, such as a whole chorus | Reduce the gain and accept the result, or regenerate the section | Lost detail cannot be rebuilt |
| Distortion already in the file | Reduce the harshness with EQ | The distortion itself stays |
Declipping algorithms estimate the missing part of the waveform from the parts that survived. They work well on short gaps, because a short gap is easier to predict. The longer the gap, the more of the result is guesswork. Repair is a matter of degree: the shorter and rarer the clipped samples, the better the odds of a clean result.
A mastering limiter does not repair clipping either. It can lower the peaks of a file, but it cannot rebuild a flattened top. The home recording mastering page explains what mastering can and cannot fix.
A worked example
This is an illustration with made-up readings. Say a downloaded file shows a true peak of +0.4 dBTP. The reconstructed wave is above full scale, so the file can clip when it is converted, and that has to be dealt with before anything else. Lowering the gain by 4 dB moves the same peak to −3.6 dBTP, which gives the limiter and the encoder room. The gain does not undo flat tops that are already there, so check them afterwards. A short clipped run may need declipping, and a long one will only be reduced.
A repair checklist
Work on a copy and keep the original untouched. Each step should save a new file, so you can compare any stage with the one before it.
- Find the clipped moments. Zoom in on the loudest hits and look for flat tops and runs of equal maximum samples.
- Find where the clipping starts: in the downloaded file, in your processing chain or in the encoder. Compare the file at each stage.
- Lower the gain by 3 to 6 dB before any processing, so the next stage has room.
- If the clipped part is short, try a declipping tool and listen at matched loudness. Keep the result only if it sounds better than the original.
- Limit the true peak to −1 dBTP, so the next encode does not clip.
- Measure before and after: true peak, integrated loudness and loudness range. Then listen on two systems.
Checking the repair
After a repair, zoom in on the repaired area and confirm that no flat top is left. Measure true peak again. Then listen for ringing or a buzz around the repaired moment, which is the usual sign of a poor reconstruction. Compare the section with its neighbours at the same loudness. If the repaired part stands out, the repair has not worked, and the better fix is a lower gain or a new generation.
Common mistakes
- Turning a clipped file up to hear it. More gain adds more clipping.
- Trusting the sample meter. A file can look safe there and still clip after conversion.
- Repairing after limiting. The limiter raises the damage along with the rest of the song, so repair before the limiter.
- Expecting a repair tool to rebuild a whole chorus. Repair works on short gaps. Long flat sections need a new generation or a lower level.
- Fixing the file and not the cause. If every download clips in the same place, lower the level when you export, or regenerate and check the true peak of the new file before you process it.
How to do it in Echoteka
- The audio restoration page says that clipping is corrected automatically when needed. Its four sets are cassette, vinyl, phone and interview.
- Restoration runs in a master paid with a credit: one credit is one master. The free master does not apply the restoration sets, so you need an account with credit. See the pricing page.
- Every master is limited by an oversampling true-peak limiter with a −1 dBTP ceiling, and the report shows true peak before and after. The limiter stops new overs from the mastering step. It does not rebuild clipping that is already in the file.
- To check a file before you upload it, use the LUFS checker. It shows sample peak and true peak, accepts files up to 50 MB, and does not store the file.
FAQ
Can clipping be removed from an AI song? Short clipped peaks can often be rebuilt. Long flat tops cannot be restored, only reduced.
How do I know if my song is clipping? Look for flat tops and runs of equal maximum samples on the waveform, then check true peak. A true peak above 0 dBTP means the file can clip after conversion, and anything above −1 dBTP leaves no margin for encoding.
Does a declipping tool make the song sound like the original? No. It estimates the missing part of the waveform, so the result is a plausible shape, not the original.
Should I fix clipping before or after mastering? Before. A limiter raises the damage along with everything else.
Does Echoteka fix clipping? The audio restoration page says that clipping is corrected automatically when needed. Restoration needs an account with credit, and every master is limited to a −1 dBTP true peak ceiling.
Master your track free
1 full master every day, no account needed. Upload a WAV or MP3 and get a streaming-ready master with a before/after report.
Master a track free