Let’s see if I can explain this without sounding totally incoherent.
I have a macro that ends with the “Export WAV” command. If I use the macro directly after recording in Audacity it will: Normalize, apply Noise Gate, apply Compression, apply Loudness Normalization, Play the audio, then bring up the Export to WAV dialog box to put in a folder destination and file name. All of this works fine and gives me the finished voice audio I am looking for.
What I don’t understand is if I import a file that already has a file name and run the same Macro, it will perform all aspects of the macro except for opening the Export to WAV dialog box.
Both are voice only recordings. The only exception is one was recorded directly in Audacity and the other was imported into Audacity. The recorder I used assigns it a date and time for a file name
2021-08-09 4-26 PM.m4a. I have changed the file name to exclude the dashes and spaces. Same result.
I have even copied the file to the desktop before importing it into Audacity. It does not matter what extension the recorded file has, the end results are the same. After the macro has run, I can click File and Export to WAV and the Export to dialog box opens immediately with that file name but with the .wav extension instead of m4a. It is obvious this would not overwrite the original file since they have different extensions, so is this some type of bug?
No, the macro ExportWav does not export the file. After the MACRO has run and ignored the ExportWav command, I can then click on File>Export as Wav, it will then save the file as a wav file with the original .m4a file name and the .wav extension.
Another wild guess. We don’t know if the Macro is getting stuck or just going around it. Add a harmless Macro step after the export. See if the extra step executes.
Got It, although it is a little confusing. It will prompt you for a file name and directory when it it is recorded in Audacity and has no file name or directory, but if it already has a file name it will direct the file to the directory you have in the macro directory settings under Preferences or to the default Audacity directory if none is listed the default directories for Macros. It would be much simpler if it would just open the Export WAV Save window or show you where it is putting the file. I’m sure the powers to be have their reasoning for this. Thanks for the answer.
Is there a way to add to the macro what folder the macro is saved in? Not by adjusting the preferences each time but having that macro save to the same folder each time. That would be nice.
Yes, it’s so that you can run a macro on a batch of files and automatically process them (including exporting the processed files) without manual intervention. If you had to manually click the “Save” button on every export, then it would be impossible to just leave Audacity to run the batch and come back when it had finished (because Audacity would be stuck waiting on the first “Export”).
If you want to manually select the name and / or location for the export, just leave that step out of the macro, and when “Play” has finished, manually export (You could set a keyboard shortcut for “Export as WAV” - see: https://manual.audacityteam.org/man/keyboard_preferences.html)
I understand the first, I was the one that started the conversation which ended with you writing that plug-in. Thanks by the way, it’s working perfect.
The files are originally on a handheld recorder. They can be moved to the desktop or the folder I want the finished file in, and the use the macro with the LegacyMacroOutputFolder at the start, then move the file from the macro-output folder to the final destination. I was thinking of streamlining the process and the macro doing the complete job. To be able to set the macro(s) to write the file to specific folders when they are used instead of having to change it in preferences each time. In the parameters, you would set the folder that particular macro would write to the final folder. Then you could have several macros with their own set of instructions and write to different folders without any further (mistakes) interaction.
Sorry, just a dream I suppose. I don’t know if this could be done and probably not worth the effort for just one request. Maybe that could be a future request. I can use the current LegacyMacroOutputFolder plug-in.
Thank you Steve for all you do to make our Audacity experience more enjoyable.
Wayne
For the “Value”, you must use a “fully qualified path”.
I’m on Linux and I’m not sure if, on Windows, you need to use forward slashes or double back-slashes. I think either will work.
Test that command on its own in a macro (just that one command in a new macro).
After running the macro, look in “Preferences > Directories” to see if the “Macro output” directory has been set.
(note that the “Value” directory must be a directory that actually exists).
All of that is correct. I am using 3.0.3 64bit, although I am using the zip version with the “Portable” folder with Audacity installed on c:. All macros are in c:\ Audacity303\Portable Settings\Macros.