Erase last bit of recording when you stop

I’ve been using Audacity to record some narration, which involves frequently stopping and starting recording.

Unfortunately when a click or press a button to stop the recording it captures the noise of the click/keypress. I can just delete it, but it’s tedious. Is there a way to have Audacity automatically erase the last 0.2 seconds (or whatever) of the recording when I stop it?

The fuzzy rule is Audacity doesn’t do anything to the show during the recording process.

You might be able to create a Macro or automatic program, but you will expend more keyclicks launching the Macro than just deleting the click manually.

Koz

You could get it down to a single key press by creating a macro to trim off the last bit of the track, and then create a keyboard shortcut to run the macro.

See here for creating keyboard shortcuts: Shortcuts Preferences - Audacity Manual

If you are working with only ONE track in the project, then the macro only needs these two commands to delete the last 1/10th second:

Also, you might be able to work something out with Punch and Roll Record

I hope this helps. :smiley:

I’m already using punch and roll, but the macro looks like a good solution! I tried adding “Stop” as the first command but unfortunately it seems like you can’t run a macro while recording. Oh well, two keystrokes is not too bad.

Btw I found a thread where someone else was trying to do a similar “stop the recording and then do something” macro: https://forum.audacityteam.org/t/stop-recording-with-a-macro/51462/1

It might be a nice idea to allow macros to run during recording if their first command is “Stop”. Or maybe just allow all macros to run, but always stop the recording before running them.