Delete Gaps : Productivity Tool

This plugin helps you to easily delete any gaps from between your clips, while also shifting any following clips over. It’s also easy to undo one or more of the deleted gaps.

DeleteGaps.ny (5.6 KB) (v1.0.0) (requires Audacity v3.6 or newer)

Using the Delete Gaps plugin:

After you have installed and enabled the plugin it will appear on the Tools menu. For convenience you could assign a shortcut key to quickly run Delete Gaps.

There are two ways to select which gaps are being deleted:

  1. Place the cursor in or near the gap between clips, and run the plugin. This will delete a single gap. For speed of use, this method will not show a popup message when it’s done.

  2. You can select any number of gaps to delete at once, including on multiple tracks. After the plugin has run, it will show a popup message telling you how many were deleted.

Tips

To delete a gap at the start of a track, just click in or near that gap, or tap the Home key, then run the plugin. This is a lot easier than selecting all the clips and dragging them.

For extra easy gap deleting via keyboard, assign a simple shortcut key to the Delete Gaps plugin, like Shift+G. Also assign shortcut keys for the Transport > Cursor to > Previous Clip Boundary and Next Clip Boundary commands, maybe using the keys Shift+[ and Shift+]. This allows you to quickly jump between any gaps and delete the ones that need it.

1 Like

Hi, I would like to thank @Darrren for this attempt, I will say attempt because on my side with audacity snap 3.7.5, we have First track is original, second after calling his plugin….LOOPHOLES that can be detected if we add label name on each clip. I have 310 clips on board.. clip 245 destroyed and after many others ones…seems ther is loophole somewher in the algorithm or memory corruption 4go tmpfs for project file 830 Mo ←- wil check this side?

plugin_empy_gaps__buggy

same result with 9go tmpfs…with faster computer. if I select a bunch of problematic clips ones only , delete gaps works on them so there is a problem of memory when too much clips are selected. This is my case, I selected the track so al the 310 clips at once and it started to corrupt at clip 245..

I tested with 100 clips, and your test of 300+ clips is more than I expected. :hushed_face:

Have you tried selecting the clips in groups of 100 to 200 clips total? Using this plugin for three groups of 100+ clips might allow it to work as it should.

Yes by group of less it works, this what I finish to do having no solution
maybe a variable or memory limitation somewhere.. difficult to track what is
happening in nyquist world..

@Darren : Tested with a project that has 231 clips: NO PROBLEMO.

That’s great! Maybe the threshold is near 256 clips, due to a byte size issue.

Hello,
I just created a Macro and an easy workflow for that works pretty much the same way. As I found the solution of yours to delete some of my clips in the process ://
Here you have a link to the Macro and instructions on how to use it most effectively.

While it’s still a manual work, I hope it speeds up the process for some people. I’ll probably work further on integrating that feature into Audacity, so it would remove all gaps with just 1 click.
Any questions are welcome either via GitHub or via my e-mail listed there.