You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add a "remove space between clips" menu item that removes gaps between clips.
Dragging the clips together is a no-go if there's more than a handful of them. The go-to workaround of using "Truncate Silence" doesn't actually work if your clips contain silence, or they contain sound < -100dB (an unnecessary lower limit in the Truncate Silence dialog), or they are closer than 0.1 seconds (another unnecessary lower limit in the Truncate Silence dialog). Plus it's slow since it scans the audio, which is not necessary for this use since Audacity already knows where clip boundaries are.
This is a very basic feature.
Generally speaking, Audacity fails in use cases that involve labelling areas to keep rather than labelling areas to cut during editing (there is for example "Split Delete" but no direct "Split Trim" or whatever you'd call it).
Problem to be solved
Removing gaps between clips.
Prior art
Literally every application (audio or not) that works with clips of anything has the ability to remove the space between them.
The go-to workaround of using "Truncate Silence" doesn't actually work if your clips contain silence, or they contain sound < -100dB (an unnecessary lower limit in the Truncate Silence dialog), or they are closer than 0.1 seconds (another unnecessary lower limit in the Truncate Silence dialog). Plus it's slow since it scans the audio, which is not necessary for this use since Audacity already knows where clip boundaries are.
I could really use this feature at the moment. I've received the 14x32 track wav files from a concert recording and lining them all up is proving very time consuming. Any magic ideas? Running version 3.3.2 Build from May 5, 2023
I calculate new positions of clips in a track with gaps by calculating their duration; After I know the duration of the first clip in the track, I add the other clips to the end of it according to their duration.
When it comes to precision, I did see some gaps when I used round(, 4), so I used round(, 5), and now everything works perfectly.
I hope that answered your question; I'm not sure it did, as I didn't experience too many "precision issues."
Please add a "remove space between clips" menu item that removes gaps between clips.
Dragging the clips together is a no-go if there's more than a handful of them. The go-to workaround of using "Truncate Silence" doesn't actually work if your clips contain silence, or they contain sound < -100dB (an unnecessary lower limit in the Truncate Silence dialog), or they are closer than 0.1 seconds (another unnecessary lower limit in the Truncate Silence dialog). Plus it's slow since it scans the audio, which is not necessary for this use since Audacity already knows where clip boundaries are.
This is a very basic feature.
Generally speaking, Audacity fails in use cases that involve labelling areas to keep rather than labelling areas to cut during editing (there is for example "Split Delete" but no direct "Split Trim" or whatever you'd call it).
Problem to be solved
Removing gaps between clips.
Prior art
Literally every application (audio or not) that works with clips of anything has the ability to remove the space between them.
Additional context
No response
I agree this would be a great feature. "Truncate Silence" does not do the job. The workaround is to "Fit Project to Width" and select everything after the gap, cut and paste it closer. But it feels very risky to do this.
Activity
JC3 commentedon Nov 14, 2022
Related: #3933
JC3 commentedon Nov 14, 2022
Related: #3934
SteveDaulton commentedon Nov 28, 2022
That's been available for years. Use "Truncate Silence" (set to "Truncate" rather than "Compress"). See: https://manual.audacityteam.org/man/truncate_silence.html
Note that in Audacity 3.1.0 it is necessary to enable:
"Preferences > Track Behaviors -> Editing a clip can move other clips".
JC3 commentedon Nov 30, 2022
@SteveDaulton wrote:
As I stated already:
JohnColket commentedon Feb 21, 2023
FYI: Forum user el_gallo also requested this feature here: https://forum.audacityteam.org/viewtopic.php?p=464263#p464263
tondeaf commentedon Jul 8, 2023
This isn't about removing silence FROM clips, it's about removing EMPTY SPACE BETWEEN clips.
djhend commentedon Nov 19, 2023
I could really use this feature at the moment. I've received the 14x32 track wav files from a concert recording and lining them all up is proving very time consuming. Any magic ideas? Running version 3.3.2 Build from May 5, 2023
unfor19 commentedon Dec 21, 2023
@JC3 @djhend @tondeaf I've created this Python package - unfor19/audacity-scripting.
You can install it with:
Then run the CLI command:
audacity_scripting clean-spaces --path "/path/to/my_project.aup3"The above command copies the original file and removes spaces (gaps) between audio clips from the copied file.
Let me know if it works for you. Feel free to let me know if you have any suggestions for improving this tool.
SteveDaulton commentedon Dec 22, 2023
unfor19 How do you work around #4220 ?
unfor19 commentedon Dec 22, 2023
Hi @SteveDaulton, first, I'd like to say thank you for Audacity and the well-documented process for building it locally; it was super easy.
When I use the
GetInfo, I round everything to5, see:I had some cases where
startandendwere opposing for some clips, so I filtered them out:source
I calculate new positions of clips in a track with gaps by calculating their duration; After I know the duration of the first clip in the track, I add the other clips to the end of it according to their duration.
When it comes to precision, I did see some gaps when I used
round(, 4), so I usedround(, 5), and now everything works perfectly.I hope that answered your question; I'm not sure it did, as I didn't experience too many "precision issues."
SteveDaulton commentedon Dec 22, 2023
An alternative solution using a "Nyquist Macro" plug-in: https://audionyq.com/remove-space-between-clips/
mppooks commentedon Mar 7, 2024
I agree this would be a great feature. "Truncate Silence" does not do the job. The workaround is to "Fit Project to Width" and select everything after the gap, cut and paste it closer. But it feels very risky to do this.
d0ugparker commentedon Mar 14, 2024
Mods please consider editing the title to show @SteveDaulton's excellent Nyquist macro plug-in answers the OP's needs.
LWinterberg commentedon Oct 6, 2025
This won't be needed for Audacity 4 as it has proper ripple editing