Fade & Cleanup Loop
Apply clean fades and trim dead air or tail artifacts from the ends of your tracks.
Anyone whose tracks end with an abrupt cut, trailing silence, or a stray artifact and just wants the edges cleaned.
Generated tracks often have messy edges — a hard cut where a fade should breathe, a few seconds of dead air on the end, or a small artifact in the tail. This loop fixes exactly those: it applies a clean fade or trims the tail, while keeping a small safety buffer of silence so endings don't feel clipped.
It always reads from the source folder and writes deterministic .cleanup.wav copies into a different output folder. The source bytes are never edited.
The standalone repo script records its exact parameters, before/after measurements, output hashes, and audition checklist in JSON so a handoff can be reviewed and resumed safely.
Skills & actions it uses
The concrete, reusable skills this loop calls to actually do the work.
npm run audio:cleanupRuns the focused local Node/ffmpeg fade and trailing-silence cleanup script.
The loop
- 1
Find the rough edges
Detect abrupt cuts, trailing dead air, very long fade-ins, and tail artifacts across the set.
- 2
Set bounded parameters
Choose fade durations, silence threshold, and tail padding for this folder run; the JSON report records them.
- 3
Apply from source
Re-run from the original file with the fade or trim folded into a single clean pass.
- 4
Keep a safe tail
Leave a small silence buffer at the end so endings don't feel unnaturally clipped.
Then run it again for the next song, chapter, or track.
You end with
- Clean, consistent track endings with approved fades applied and dead air or artifacts trimmed
- Originals preserved — every fix written to fresh files
How it connects
Requires
Each slot needs one loop — pick whichever fits. The recommended pick is starred.
Alternatives
A competing loop for the same job — different tool, taste, or depth. Pick whichever fits you.
Turn a folder of raw WAVs into a loudness-matched, diagnosed, cleanly-named album that streams right.
Normalize a track or album to a streaming-ready loudness — and touch nothing else.
Scan your tracks for the problems that wreck a release — and change nothing until you say so.