Batch Mixdown a to b, a to c , e.t.c. [SOLVED]

Questions, discussion and recipes for scripting and batch processing in Audacity.
See also the "Scripting" section of the Audacity manual.
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
Locked
salto_lenin
Posts: 3
Joined: Thu Aug 01, 2019 7:05 pm
Operating System: OS X 10.7 - 10.8 Lion / Mountain Lion

Batch Mixdown a to b, a to c , e.t.c. [SOLVED]

Post by salto_lenin » Thu Aug 01, 2019 7:17 pm

Have Debian 9.9.0 and Audacity 2.3.3-alpha. freshly compiled from source.
Have one file which i want to add to many other files at the front. Problem, cant perfectly explain, lets say add file1 > file2, file1 >file3 , file1 > file4 e.t.c
And, because have around 700 audio files, wish to find macro or some other solution.
Hope is some solution to automate it.

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

Re: Batch Mixdown a to b, a to c , e.t.c.

Post by steve » Fri Aug 02, 2019 9:07 am

It can be done with a macro (https://manual.audacityteam.org/man/macros.html).

You need to know in advance how long "file 1" is, then your macro commands are:
1) Select from start of track to <length of file 1>
2) Repeat effect (repeat once)
3) Select from start of track to <length of file 1>
4) Silence the selection
5) Import2: <fully qualified name of file 1>
6) Export
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

salto_lenin
Posts: 3
Joined: Thu Aug 01, 2019 7:05 pm
Operating System: OS X 10.7 - 10.8 Lion / Mountain Lion

Re: Batch Mixdown a to b, a to c , e.t.c.

Post by salto_lenin » Fri Aug 02, 2019 2:28 pm

Something not ok, where its gonna get file to add to others?

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

Re: Batch Mixdown a to b, a to c , e.t.c.

Post by steve » Fri Aug 02, 2019 3:05 pm

When you run a Macro on a selection of files, Audacity imports the first of the selected files, runs the macro, then clears the project and repeats the process with the next file, and so on. Thus, running a Macro as a batch process will pull in file 2, file 3, file 4,...

The "Import2:" command in the script pulls in "file 1", which is the same each time the macro runs.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

salto_lenin
Posts: 3
Joined: Thu Aug 01, 2019 7:05 pm
Operating System: OS X 10.7 - 10.8 Lion / Mountain Lion

Re: Batch Mixdown a to b, a to c , e.t.c.

Post by salto_lenin » Sat Jun 27, 2020 6:59 am

Thanks a lot Steve!
Sorry, it took a while to get it working (had issue between arms and keyboard), but got it working!!!!

If someone also want to add audio file in front of many audio files, here is my macro:

Code: Select all

Select:End="0" Mode="Set" Start="0.3"
Repeat:Count="1"
Select:End="0" Mode="Set" Start="0.3"
Silence:Use_Preset="<Current Settings>"
Import2:Filename="/path/to/first/audiofile.wav"
ExportMp3:
Its made, following Steve's instructions.... .

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

Re: Batch Mixdown a to b, a to c , e.t.c. [SOLVED]

Post by steve » Sat Jun 27, 2020 9:32 am

salto_lenin wrote:
Sat Jun 27, 2020 6:59 am
got it working!!!!
Super :)

I'll close this topic as"solved".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked