Advanced Process Lesson 3: Crop and Inpaint a Bad Passage
How to cut trailing silence, replace one weak bar with crop and inpaint, and rescue a take instead of regenerating the whole song from zero.
Two small tools decide whether a nearly good song ships or gets thrown back into the queue. Crop removes audio you never wanted. Inpaint replaces a region while leaving everything around it alone. Used in that order, they turn a regeneration into a repair, which is both faster and far less likely to lose the take you already liked.
What crop and inpaint each do
Crop is destructive and simple: you choose a start and an end, and everything outside is discarded. It is the right tool for dead air at the head of a track, a long fade that goes nowhere, or an ending that trails off for eight seconds after the last line. Inpaint is surgical: you mark a window, describe what should be there instead, and the model regenerates only that window while keeping the surrounding audio as context. Crop shortens. Inpaint rewrites.
Finding the exact boundary to cut
Zoom in until you can see the waveform of the last line rather than guessing from the play bar. Cut on silence, about a tenth of a second after the final consonant dies, not during the tail of the note — cutting a ringing note leaves a click that survives every later render. If the track ends on a held vocal, decide whether you want that hold. If you do not, crop one beat before it and let the natural decay fall outside the boundary.
Replacing a bad passage in place
- Highlight the weakest window, usually a bar or two where the vocal smears or a line is delivered flat.
- Extend the selection slightly into healthy audio on both sides. The model needs known-good material to lock onto, and a window with no margin produces a seam you will hear.
- Describe what belongs there: the same voice, the same mood, the same tempo as the section you kept. Do not introduce a new idea inside a repair.
- Generate two or three replacements and audition them against the original, listening specifically for the transition on each side rather than for the passage itself.
- Commit to the one whose edges you cannot find without looking at the waveform.
Keeping the rest of the take untouched
The reason to prefer inpaint over regenerating the song is that regeneration rolls the dice on everything: the vocal, the phrasing, the arrangement you spent four generations getting right. Inpaint holds those constant. The discipline it asks for is restraint — resist widening the selection to fix something you noticed one bar further on. Make that a second repair with its own margin. Two narrow repairs with clean edges beat one wide one with soft, uncertain boundaries every time.
Fixing the end of the track
Endings are where songs most often fall apart, because the model has to stop rather than continue. If the final line simply cuts, crop back to the last clean pause and accept a shorter song; a decisive two-minute track beats a four-minute one that apologises at the end. If you need the full length, inpaint the last four bars with an explicit instruction to resolve and ring out, then crop the silence that follows.
When you should just regenerate
Repair has a limit. If the vocal is out of tune across most of the song, if the arrangement fights the melody, or if you are on your fourth inpaint and each one introduces a new problem, the take is not worth saving. Keep the parts that work as reference, write down what the prompt should have said, and start again. Knowing the difference between a repairable flaw and a wasted generation is the actual skill here.
— Nam Hoai (Nam Hoài Đất Mỏ)