Hi Guys,
Thanks for thinking about these things. Though dialogs are very important, I don't fully understand the nuances so unable to comment.
My specific user case would be to open Audacity and the lof file from the command line, and everything will just open. It would be nice if it makes a new track appear in audacity (possibly mono or stereo as appropriate, or always defaults to stereo and mono tracks either just go to the first track, or mono tracks appear across both tracks),concatenates all the audio one after the other as defined in he lof, and maybe even create a label track telling the user where the start of every new file exists in the timeline.
Happy to explain more. Thanks, Graham
Open multiple audio files into one track
Forum rules
This forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Re: Open multiple audio files into one track
Regardless of the LOF question, the code to append import does not yet exist, so that needs to be developed.Gale Andrews wrote:if the LOF syntax allowed specifying appending of files, would the user need to use a GUI Append Import rather than simply the existing File > Open... or File > Import...? I was figuring that a GUI Append Import that supported LOF would append from a LOF file using the existing LOF syntax.
Extending the syntax of LOF files to make use of that new code is likely to be relatively straightforward. We then have both the code in Audacity, and the ability to use it.
Now looking from the opposite direction:
If we have a GUI approach to append import, the code to do it still needs to be written. That part is the same whether using a LOF approach or a GUI approach.
I think we agreed that we would need the ability in the GUI for the user to define not only what files to import, but also what order to import them. In terms of the code, that means creating a "list" of the files. Essentially that is what a LOF file is.
Looking in a bit more detail at the LOF format:
The LOF file is plain text and is read one line at a time. The fully qualified file name of the LOF file is used to determine relative paths.
Each line may contain 0 or more "tokens" (keywords).
Tokens are identified, their associated value calculated, then checked for validity, one at a time.
When all tokens in the line have been evaluated and checked, whatever that line said is actioned, then the next line is read.
The key to this is that the first "window" token is implicit, and all other tokens are optional. Tokens are read in order, and if the line does not make sense it is ignored. This is very convenient because if we define a new token, then as long as it goes after the other non-comment tokens it will be ignored by older versions of Audacity. It also means that tokens can easily be overridden. Thus, if we specify a track offsets in the GUI, they can override track offsets specified in the LOF. Similarly if we specify "append" in the GUI, then that can override an implicit "in new track" in the LOF, or if we specify "in new track" in the GUI it can override an explicit "append" in the LOF.
I'm perhaps not explaining very well, so putting it another way:
When designing a program, there is the code that "does something" and there is the interface that allows interaction with the code. There can be more than one interface.
Example: a synthesizer "does something" (synthesizes sound) and a keyboard can be used as an interface. Often a synthesizer can be used with a "wind controller" or a "MIDI sequencer", or a MIDI keyboard, or any other MIDI controller.
Similarly, for append import we need the code that handles append import. Text file input is one possible interface by which the user can interact with that code. A GUI would be another type of interface through which the user could interact with said code. These interfaces are not exclusive - there's no reason why they could not coexist.
In terms of development, extending the syntax of LOF files is considerably simpler than developing an acceptable GUI, and so imho would be a good practical first step.
Taking this idea one step further, the LOF syntax could be extended to do other things, such as normalizing each file, or removing DC offset, or cross-fading, or ....
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Open multiple audio files into one track
Hi:waxcylinder wrote:Tracks > Align Tracks >Align End to End willline all the tracks up one after the other but still in separate tracks.
If you want them is a single track, then use Ctrl+A to select all the tracks and then use Tracks > Mix and Render
Have a look at this page in the Audacity Manual: http://manual.audacityteam.org/o/man/tracks_menu.html
WC
I had been tediously using the Time Shift tool to manually line up tracks one after another.
Now thanks to this thread, I now know that tracks - align tracks- end to end saves so much time.
You learn something new every day.
mdubin
-
waxcylinder
- Forum Staff
- Posts: 14685
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Open multiple audio files into one track
This has been introduced only fairly recently - I think it came in with 2.0.4mdubin wrote: ... I now know that tracks - align tracks- end to end saves so much time.
You learn something new every day.
Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
Re: Open multiple audio files into one track
It was added to the (alpha) source code Fri Aug 23rd 07:15:13 2013 UTC and the wording for the updated Align menu was added a week later, so that would make it "new in Audacity 2.0.5" (released October 22nd 2013).waxcylinder wrote:This has been introduced only fairly recently
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)