Align tracks end to end
Align tracks end to end
This topic is in parallel with a discussion on the Audacity QA e-mail list. As most forum users are not on that list I thought that it would be useful to also raise the issue here (and also post some screenshots).
The question of how to join files end to end comes up quite regularly (for example: http://forum.audacityteam.org/viewtopic ... 46&t=72490)
Currently, it is quite awkward to append more than a few audio files. The options are to either import the files and then use the Time Shift tool to move them into position, or there are Nyquist plug-ins (Append Import and Chain it Up), which though quite powerful are not simple to use (mostly due to the lack of a file browser for Nyquist plug-ins and other limitations of the Nyquist plug-in interface).
Audacity is already able to import multiple audio files, but they are arranged one above the other. What is missing is the ability to quickly and easily arrange the imported files end-to-end. This could be accomplished by extending the functionality of "Tracks > Align Tracks" with a new option "Align End to End".
To concatenate (join end to end) a number of files:
1) "File > Import > Audio". Select the files that you want to import and they are imported in alphanumeric order, one above the other.
(Note: the ordering may be slightly different between Windows, Linux and Mac)
2) If the tracks need to be adjusted in any way, now is a good time to do it - for example you may want to normalize the tracks, or adjust the equalization so that they sound well together, or adjust the track order (by dragging tracks up or down).
3) Select all of the tracks ("Edit > Select > All" Ctrl+A)
4) "Tracks > Align Tracks > Align End to End" and the tracks are immediately aligned end to end:
5) (optional) If you want all of the tracks to be merged into a single track - Select All (as before) then "Tracks > Mix and Render" and the tracks will be mixed down into a single track. Note that "Mix and Render can be quite slow with large projects and may not be necessary as tracks are automatically mixed into a single mono or stereo file when the project is Exported.
For anyone that is able to build Audacity from the source code that wants to try out this proposed feature, here is an experimental patch:
The question of how to join files end to end comes up quite regularly (for example: http://forum.audacityteam.org/viewtopic ... 46&t=72490)
Currently, it is quite awkward to append more than a few audio files. The options are to either import the files and then use the Time Shift tool to move them into position, or there are Nyquist plug-ins (Append Import and Chain it Up), which though quite powerful are not simple to use (mostly due to the lack of a file browser for Nyquist plug-ins and other limitations of the Nyquist plug-in interface).
Audacity is already able to import multiple audio files, but they are arranged one above the other. What is missing is the ability to quickly and easily arrange the imported files end-to-end. This could be accomplished by extending the functionality of "Tracks > Align Tracks" with a new option "Align End to End".
To concatenate (join end to end) a number of files:
1) "File > Import > Audio". Select the files that you want to import and they are imported in alphanumeric order, one above the other.
(Note: the ordering may be slightly different between Windows, Linux and Mac)
2) If the tracks need to be adjusted in any way, now is a good time to do it - for example you may want to normalize the tracks, or adjust the equalization so that they sound well together, or adjust the track order (by dragging tracks up or down).
3) Select all of the tracks ("Edit > Select > All" Ctrl+A)
4) "Tracks > Align Tracks > Align End to End" and the tracks are immediately aligned end to end:
5) (optional) If you want all of the tracks to be merged into a single track - Select All (as before) then "Tracks > Mix and Render" and the tracks will be mixed down into a single track. Note that "Mix and Render can be quite slow with large projects and may not be necessary as tracks are automatically mixed into a single mono or stereo file when the project is Exported.
For anyone that is able to build Audacity from the source code that wants to try out this proposed feature, here is an experimental patch:
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Align tracks end to end
After concatenating the tracks, the project becomes much longer, so only a short section of the modified project is visible. Perhaps it would be preferable if "Align End to
End" also zoomed out to fit?
This new patch automatically zooms out to fit the project within the project window after aligning the tracks end to end.
To demonstrate the difference between AlignTracksEndToEnd-2 and AlignTracksEndToEnd-3, here is a project with three audio tracks before aligning:
and after aligning with AlignTracksEndToEnd-2
and after aligning with AlignTracksEndToEnd-3
Is this new behaviour of automatically zooming to fit the project preferable?
End" also zoomed out to fit?
This new patch automatically zooms out to fit the project within the project window after aligning the tracks end to end.
To demonstrate the difference between AlignTracksEndToEnd-2 and AlignTracksEndToEnd-3, here is a project with three audio tracks before aligning:
and after aligning with AlignTracksEndToEnd-2
and after aligning with AlignTracksEndToEnd-3
Is this new behaviour of automatically zooming to fit the project preferable?
Re: Align tracks end to end
Very helpful patch--I have something similar in my custom build but it adds everything to a single track. I like the terminal zoom-to-fit.steve wrote: Is this new behaviour of automatically zooming to fit the project preferable?
Re: Align tracks end to end
I've still got a bug affecting stereo tracks - I'm working on it
(don't expect the last posted patch to be perfect - it isn't).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
waxcylinder
- Forum Staff
- Posts: 14684
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Align tracks end to end
+1 me tooEdgar wrote: I like the terminal zoom-to-fit.
Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
Re: Align tracks end to end
Keeping this topic up to date - the latest patch also fixes a few other minor issues with the Align functions, in particular, the behaviour of label tracks.
The functions "Align with Cursor" and "Align with Selection Start" were identical in all but name, so these have been merged into a single "Align from Cursor / Selection Start" command.
Similarly "Align End with Cursor" and "Align End with Selection Start" have been merged into a single "Align End to Cursor / Selection Start".
The functions "Align with Cursor" and "Align with Selection Start" were identical in all but name, so these have been merged into a single "Align from Cursor / Selection Start" command.
Similarly "Align End with Cursor" and "Align End with Selection Start" have been merged into a single "Align End to Cursor / Selection Start".
- Attachments
-
- AlignTracksEndToEnd-4e.patch
- (4.88 KiB) Downloaded 246 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
waxcylinder
- Forum Staff
- Posts: 14684
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Align tracks end to end
Perhaps a further option to perform an automated Mix and Render so that the user ends up with a single track would be useful too?
Peter.
Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
Re: Align tracks end to end
As the sounds will not be overlapping, it would be much faster (and lossless) to "move" the tracks into one track (and delete the empty tracks) rather than "mixing" to create one track. Also, "moving" the clips would maintain the splits between tracks, which would probably be useful.waxcylinder wrote:Perhaps a further option to perform an automated Mix and Render so that the user ends up with a single track would be useful too?
Any idea how we could work that into the interface?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
waxcylinder
- Forum Staff
- Posts: 14684
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Align tracks end to end
@Steve: ami I right in thinking (from past posts on devel/quality) that you are dealing with this? Can I therefore archive this thread?
Peter
Peter
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
Re: Align tracks end to end
I have submitted my code.waxcylinder wrote:@Steve: ami I right in thinking (from past posts on devel/quality) that you are dealing with this?
Can we keep this here as a reminder for now just so that it doesn't get completely forgotten about?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)