Adding label to second label track?

Help for Audacity on Windows.
Forum rules
ImageThis 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.
Post Reply
brian0918
Posts: 12
Joined: Tue May 07, 2019 1:33 pm
Operating System: Windows 7

Adding label to second label track?

Post by brian0918 » Wed Apr 14, 2021 1:27 pm

I have an audio track and then two label tracks. I'm trying to create a macro to add 2 seconds before/after a selection of audio (using the Select Time command), and then assign a label, but the label needs to go to the second label track, not the first label track.

It seems that all the label commands automatically put the label on the first label track. Is there any way to get it to put the label on the second label track, without requiring mouse clicks to highlight that track?

If not, is there a way to do this with a Macro that will select the correct label track, then add the label?

Thanks!

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

Re: Adding label to second label track?

Post by steve » Wed Apr 14, 2021 1:34 pm

If the second label track is the bottom (last) track in the project, add the command "Move Focus to Last Track" before adding the label.
The label is added to the label track that has focus ("focus" = "the current track", and it doesn't matter if it is selected or not).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

brian0918
Posts: 12
Joined: Tue May 07, 2019 1:33 pm
Operating System: Windows 7

Re: Adding label to second label track?

Post by brian0918 » Wed Apr 14, 2021 1:36 pm

Thanks for the reply. Unfortunately with what I'm doing, there's actually a third label track below that, which I use for tracking the exact time of day.

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

Re: Adding label to second label track?

Post by steve » Wed Apr 14, 2021 1:38 pm

brian0918 wrote:
Wed Apr 14, 2021 1:36 pm
there's actually a third label track below that,
In that case, move focus to the bottom track, then "Move focus to previous track" (one track up).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

brian0918
Posts: 12
Joined: Tue May 07, 2019 1:33 pm
Operating System: Windows 7

Re: Adding label to second label track?

Post by brian0918 » Wed Apr 14, 2021 1:39 pm

Thanks, right after I replied I tried that out and it's working!

Post Reply