Importing Track Names

This section is now closed.
Forum rules
Audacity 1.2.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
thisismatt
Posts: 1
Joined: Thu Nov 01, 2007 4:16 pm
Operating System: Please select

Importing Track Names

Post by thisismatt » Thu Nov 01, 2007 4:41 pm

Hello - I have a large file that requires editing into individual files, a total of 142 at last count. I've been given a text file of the filenames required for the resultant 142 files, but instead of typing out each one for every single track, is it possible to import this list and have Audacity create a new audio track in one project based on each filename contained within the text file?

Many thanks
Matt

alatham
Posts: 1591
Joined: Tue Jul 31, 2007 2:27 pm
Operating System: Windows 10

Re: Importing Track Names

Post by alatham » Thu Nov 01, 2007 8:07 pm

No, but there is a fast way to do this.

Audacity allows you to export the labels (in the File menu). The resulting file will look like this:

Code: Select all

1.381678	hurray
2.101497	for
3.589025	atheists
Each line contains the time stamp of the label, followed by some whitespace, followed by the name.

What you can do is this: In Audacity, make sure all the audio editing is done (this exporting stuff is the last step, so be sure of this). Add a label at the beginning of each file you want to end up with. Add a name to the first label (for the purpose of lining them up later, it doesn't matter what you put here). Then use the File -> Export Labels function and save the text file somewhere.

Now, you'll need a text editor with column editing capabilities. There are probably plenty of them, but the only free one I've used is CrimsonEditor:
http://www.crimsoneditor.com/

You will need two files now, your 'labels' file and your 'file names' file. The first thing you need to do is make sure the File Names are formatted correctly. Each filename needs to be the first thing on it's own line in order for the column editing mode to work. They also need to be in the order that the labels appear. Also, no characters that aren't supported in regular file names should be included (no > < " ' - + : . / { } , etc.). Once that's done, set your text editor in column mode (in CrimsonEditor, it's [alt]+c) and highlight all the names, then copy (ctrl+c) them. Now open your labels file, highlight the fake name that you added, and then continue to highlight all the way to the bottom of the file. You should notice that you've highlighted the space where all the names should be, but you haven't highlighted the time-stamps. Now you can paste (ctrl+v) all the file names and everything will be hunky dory.

Now, in Audacity you can import the label file and then use the File -> Export Multiple function and watch all your hard work turn into 142 (!) audio files.

Locked