Join labels together: Make end of one the start of the next

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
Blackadder
Posts: 2
Joined: Sat Dec 22, 2018 3:16 pm
Operating System: Windows 7

Join labels together: Make end of one the start of the next

Post by Blackadder » Sat Dec 22, 2018 3:50 pm

[Audacity v2.1.0; Win 7 Pro x64]
How can I convert point labels into regions, with the start of each region = the end of the previous?
The Tutorial https://manual.audacityteam.org/man/lab ... ml#editing says:
  • expand a point label into a region label by clicking and dragging either of its triangle handles
  • adjust the junction point where two labels meet by clicking and dragging their shared circle handle
but when I do this the regions do not merge into a "junction", instead they overlap (move to different rows in the label track).

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

Re: Join labels together: Make end of one the start of the next

Post by steve » Sat Dec 22, 2018 5:10 pm

Blackadder wrote:
Sat Dec 22, 2018 3:50 pm
How can I convert point labels into regions, with the start of each region = the end of the previous?
That's quite tricky to do (as you have discovered), but in most cases you don't need to. For example, if you want the labels for "Export Multiple", then you can just use point labels instead.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

tlm
Posts: 91
Joined: Thu Nov 22, 2012 4:32 am
Operating System: macOS 10.15 Catalina or later

Re: Join labels together: Make end of one the start of the next

Post by tlm » Mon Jan 13, 2020 12:06 pm

I too wanted to convert about 40 point labels into 20 corresponding region labels.

The realization that I wanted to do this came halfway through my labeling, so my label track had another 40 or so region labels after all the point labels.

Although I found no easy way to convert the earlier point labels to region labels, here is the work around I used which takes advantage of the yellow Audacity guides so that I didn't have to start over.

1) select the label track
2) copy and paste it to produce a duplicate label track right below it
3) select and delete all the point labels in the top label track
4) this shifts the existing region labels, so use the shift tool (option spacebar) to shift them back to where they belong
5) now take drag to define regions between point labels, taking advantage of the yellow Audacity guides

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

Re: Join labels together: Make end of one the start of the next

Post by steve » Mon Jan 13, 2020 12:24 pm

tlm wrote:
Mon Jan 13, 2020 12:06 pm
I found no easy way to convert the earlier point labels to region labels
You can drag one of the label's "wings" with the mouse:
(Dragging the circle between the two "wings" moves the label)

Screenshot_2020-01-13_12-20-57.png
Screenshot_2020-01-13_12-20-57.png (30.1 KiB) Viewed 573 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Join labels together: Make end of one the start of the next

Post by steve » Mon Jan 13, 2020 12:26 pm

tlm wrote:
Mon Jan 13, 2020 12:06 pm
3) select and delete all the point labels in the top label track
You can delete a label track entirely, by clicking the [X] in the top left corner of the label track.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

tlm
Posts: 91
Joined: Thu Nov 22, 2012 4:32 am
Operating System: macOS 10.15 Catalina or later

Re: Join labels together: Make end of one the start of the next

Post by tlm » Fri Jan 17, 2020 4:23 pm

Thanks for the tips

tlm
Posts: 91
Joined: Thu Nov 22, 2012 4:32 am
Operating System: macOS 10.15 Catalina or later

Re: Join labels together: Make end of one the start of the next

Post by tlm » Sat Feb 01, 2020 9:55 am

I found a solution to convert large numbers point labels into region labels (or vise-versa). I needed to do this for hundreds of labels, so I exported the label file (File-->Export-->Export Labels), did some editing in Excel, and then reimported the labels (File-->Import-->Import Labels). You just have to know how to work with spreadsheets/manipulate text files.

The key is to understand that the label files have this structure:

Point Labels:
0.34000 <tab> 0.34000 <tab> pointLabel1
0.86000 <tab> 0.86000 <tab> pointLabel2
1.53000 <tab> 1.53000 <tab> pointLabel3
2.97000 <tab> 2.97000 <tab> pointLabel4

Region Labels:
0.34000 <tab> 0.86000 <tab> regionLabel1
1.53000 <tab> 2.97000 <tab> regionLabel2

The image below shows what the above examples look like when imported into Audacity:
Screen Shot 2020-02-01 at 10.52.39 AM.jpg
Screen Shot 2020-02-01 at 10.52.39 AM.jpg (83.9 KiB) Viewed 386 times

Post Reply