Batch build-a-song scripting, is this possible?

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
Post Reply
SenseiLeRoof
Posts: 1
Joined: Fri Jul 09, 2021 6:38 pm
Operating System: Windows 10

Batch build-a-song scripting, is this possible?

Post by SenseiLeRoof » Fri Jul 09, 2021 6:46 pm

In a given folder, I have files in the naming pattern (string) INTRO.mp3 and (string) LOOP.mp3, as well as other files that should be left alone. What I want to have happen for each set of appropriate files is this:

Import (string) INTRO.mp3
Import (string) LOOP.mp3 twice (so they're all different tracks in the same project)
Cut the second LOOP copy to its first 15 seconds
Align end-to-end
Merge into single track
Fade out last 7~8 seconds
Export as (string).mp3

As the title says, is this possible?

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

Re: Batch build-a-song scripting, is this possible?

Post by steve » Fri Jul 09, 2021 6:52 pm

If I understand the task correctly, it is too complex to do with Audacity's "Macro" batch processing, but sounds like it could be done using Python to drive Audacity (see: https://manual.audacityteam.org/man/scripting.html)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply