Can't align label tracks with another 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.
gasto
Posts: 50
Joined: Wed Dec 17, 2008 3:03 pm
Operating System: Please select

Can't align label tracks with another label track

Post by gasto » Mon Dec 17, 2012 1:48 pm

It seems that label tracks were designed to work with other audio tracks, not with other label tracks.

I want to align the label duration with the label duration of another track:

Image

So that it produces:

Image

Without having to vastly zoom in to align accurately.

Here is another label intersection to be aligned:

Image

To produce:

Image



Another issue I have found is that the selection in an audio track(by taking advantage that in the audio track, label delimiter snaps do work) does not transfer to the desired label track(by pressing the up/down arrow keys to select the label track and pressing 'Enter'):

Image

gasto
Posts: 50
Joined: Wed Dec 17, 2008 3:03 pm
Operating System: Please select

Re: Can't align label tracks with another label track

Post by gasto » Mon Dec 17, 2012 2:46 pm

I am thinking about a script that could automate this. The algorithm wouldn't be too complicates.

Just find the nearest label delimiter of the target label track to the label delimiter on the base label track, reassign the label delimiter's time position of the target track to the timestamp of the label delimiter of the base track.

Unfortunately I don't know LISP syntax, if it were a C like syntax it would be easier for me to try it out.

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

Re: Can't align label tracks with another label track

Post by steve » Mon Dec 17, 2012 3:12 pm

Unfortunately Nyquist is not able to read label tracks. Nyquist can create labels, but it does not know where existing labels are.

Generally I find the easiest way to align labels is to simply create a new label that is correctly aligned, then cut and paste the text from the original label, then delete the old label.

Another method is to use the Label Editor: http://manual.audacityteam.org/o/man/la ... tml#editor
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

gasto
Posts: 50
Joined: Wed Dec 17, 2008 3:03 pm
Operating System: Please select

Re: Can't align label tracks with another label track

Post by gasto » Mon Dec 17, 2012 9:16 pm

What do you mean by Nyquist can read label files? In the very next phrase you seem to contradict that.

Hmmm... the only solution, hence, seems to be to use the label editor to select the ranges of the label, watch such values from the selection viewer(because I cannot copy and paste them) and manually input them for the other label track's corresponding label range. This begs automation..

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

Re: Can't align label tracks with another label track

Post by steve » Mon Dec 17, 2012 9:21 pm

gasto wrote:What do you mean by Nyquist can read label files?
That is not what I wrote.
I wrote: "Nyquist is not able to read label tracks"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

gasto
Posts: 50
Joined: Wed Dec 17, 2008 3:03 pm
Operating System: Please select

Re: Can't align label tracks with another label track

Post by gasto » Tue Dec 18, 2012 6:36 am

Yes, sorry for the typo.

So basically you are suggesting that Nyquist can write but not read label files. Am I correct?

gasto
Posts: 50
Joined: Wed Dec 17, 2008 3:03 pm
Operating System: Please select

Re: Can't align label tracks with another label track

Post by gasto » Sat Dec 22, 2012 10:45 am

Basically, the best alternative is manipulating the label and editing the TXT file by using manual or scripting methods.

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

Re: Can't align label tracks with another label track

Post by steve » Sat Dec 22, 2012 12:54 pm

As I wrote previously:

I find the easiest way to align labels is to simply create a new label that is correctly aligned, then cut and paste the text from the original label, then delete the old label.

Another method is to use the Label Editor: http://manual.audacityteam.org/o/man/la ... tml#editor
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

gasto
Posts: 50
Joined: Wed Dec 17, 2008 3:03 pm
Operating System: Please select

Re: Can't align label tracks with another label track

Post by gasto » Tue Dec 25, 2012 10:23 am

How can I move the labels along with the initial label I point to and drag?


Image

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

Re: Can't align label tracks with another label track

Post by steve » Tue Dec 25, 2012 8:10 pm

9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply