Generating a file/project name automatically

Audio software developers forum.
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
pebol
Posts: 2
Joined: Mon Oct 01, 2012 8:58 am
Operating System: Please select

Generating a file/project name automatically

Post by pebol » Mon Oct 01, 2012 9:41 am

I think of using Audacity on a portable ARM/Linux based board with a LCD to do mobile recording. For this I would prefer if I do not have to specify the file or project name manually but to generate it automatically, for instance using YearMonthDayHHMMSS.wav as file name. Is there a already way to do this? I could try to change the code if someone gives me hint where to look (and maybe some more help, as I am not an experienced programmer).


Regards


Peter

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

Re: Generating a file/project name automatically

Post by steve » Thu Oct 04, 2012 4:17 am

Audacity cannot currently do this.
I'm not a C/C++ programmer either but I think that modifying Audacity to do this would be difficult.
A better bet would be to use SoX http://sox.sourceforge.net/ as this is designed to be used from the command line.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Generating a file/project name automatically

Post by Edgar » Thu Oct 04, 2012 4:58 pm

Doing this is fairly simple once you have Audacity (and the necessary wxWidgets compiling). If you really have the urge, try getting the two to compile then ask me for help as you go. To get you started compiling, read this excruciatingly detailed step-by-step:
http://www.hometownband.org/Audacity/Co ... acity.html
(Steve can help out with the Linux details).

After that, read this thread for some details one automating Audacity:
http://forum.audacityteam.org/viewtopic ... ded#p99832
You will not need all the switch details but it will have some pointers on the concepts you will need to address.

Just suggesting (in the save-as dialog) a default filename based on time+date is simple, I do something similar already so I can help you with that code.

Post Reply