Sample file Save in place

Anything you think is missing, or needs enhancement, goes here.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
uffe61
Posts: 3
Joined: Tue Jun 14, 2022 5:29 am
Operating System: Windows 10 / 11

Sample file Save in place

Post by uffe61 » Tue Jun 14, 2022 2:26 pm

I think this is a common Use Case for Audacity:

Several DAWs and music/sound applications (Ableton Live, NI Reaktor etc) provides the possibility to set an external audio sample editor. Audacity is almost perfect for this. Here is the current workflow:
In your DAW audio app:
(- Set up Audacity as your external sample editor)
- Select and open the sample file you want to edit
- Audacity starts and has opened the selected sample file
- You use Audacity to edit the sample
- When done you want replace the original file with the edited sample. This is where it becomes a bit complicated:
You have to export the file, navigate to where the original is stored and save the export there. This takes some time.

If however there was a "Save in place" option in the clip right-click menu that when selected replaced the the original file with the editied audio it would save so much time and frustration.

LWinterberg
Forum Staff
Posts: 129
Joined: Thu Jul 22, 2021 1:00 pm
Operating System: Windows 10 / 11

Re: Sample file Save in place

Post by LWinterberg » Tue Jun 14, 2022 7:34 pm

yeah, the save vs export thing is very tricky to solve overall because different kinds of users will have vastly different expectations on what "save" exactly means. Overwriting an existing file is certainly something I'm considering as an option:
Figma_ADl6KIumwy.png
Figma_ADl6KIumwy.png (93.52 KiB) Viewed 154 times
(as you can see, this is very much a work-in-progress design)

uffe61
Posts: 3
Joined: Tue Jun 14, 2022 5:29 am
Operating System: Windows 10 / 11

Re: Sample file Save in place

Post by uffe61 » Thu Jun 16, 2022 1:48 pm

Thank you for looking into this.

I was thinking of having the 'Save in place' menu item in the right-click menu of the clip itself (tho one that has cut, copy paste, split, mute etc) then it does'nt interfere with the regular save/export.

steve
Site Admin
Posts: 84904
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Sample file Save in place

Post by steve » Thu Jun 16, 2022 3:17 pm

Here's a macro for Audacity that I think will do what you want.
(See here for how to install a macro: https://manual.audacityteam.org/man/manage_macros.html)

What the macro does:

1. Selects all audio in the project
2. Looks up the name of the most recent file in the "Recent Files" list.
3. Exports the project using the file name determined by step 2.

Note that this macro is designed for WAV files only (which is what most DAWs use).
Caution: The file is overwritten immediately and cannot be undone.
Overwrite.txt
(1.52 KiB) Downloaded 3 times
Learn more about Nyquist programming at audionyq.com

uffe61
Posts: 3
Joined: Tue Jun 14, 2022 5:29 am
Operating System: Windows 10 / 11

Re: Sample file Save in place

Post by uffe61 » Thu Jun 16, 2022 8:34 pm

Thanks !
Macro works fine as such.

Unfortunately Ableton (or Windows) doesn't let go of the file completely so Audacity cannot overwrite it, so I don't get my buttery smooth workflow. Anyhow the major problem was solved (not needing to navigate to the file) so thanks again.

steve
Site Admin
Posts: 84904
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Sample file Save in place

Post by steve » Thu Jun 16, 2022 9:43 pm

uffe61 wrote:
Thu Jun 16, 2022 8:34 pm
Unfortunately Ableton (or Windows) doesn't let go of the file completely so Audacity cannot overwrite it,
I thought that was precisely what you were asking for :?
Learn more about Nyquist programming at audionyq.com

Post Reply