Creating two label tracks for a given wav file [SOLVED]

Questions, discussion and recipes for scripting and batch processing in Audacity.
See also the "Scripting" section of the Audacity manual.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
ennoausberlin
Posts: 6
Joined: Thu Apr 15, 2021 9:53 am
Operating System: Linux *buntu

Re: Creating two label tracks for a given wav file

Post by ennoausberlin » Sat May 15, 2021 4:57 am

Hi

I am sorry for being back late. Something new got into my way.
Your explanation was fine and I could solve my problem.
I just realized I did not say Thank you.

So. Thank you

Have a nice day
Enno
steve wrote:
Tue Apr 27, 2021 8:52 pm
ennoausberlin wrote:
Tue Apr 27, 2021 8:31 pm
In the audacity git repo are some named pipe scripts to create screenshots for documentation. One of them is a label script that creates labels like Intro or Chopin. I do not see a call to SelectTime there. What trick is used in this case?
I'm not sure that all of those scripts work as intended. Some of them are quite old and need updating.

ennoausberlin wrote:
Tue Apr 27, 2021 8:31 pm
I still don’t get the whole picture. I am confused
The label index is based on the start time of the label, not on the order that they were created.

By creating the labels at the required time position (by making a selection and then adding the label), you can deduce the index number of the label.
Alternatively:
If you create each label at time=0 and then so long as no other label has a start time of 0, the new label will be index number 0.

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

Re: Creating two label tracks for a given wav file [SOLVED]

Post by steve » Sat May 15, 2021 11:49 am

ennoausberlin wrote:
Sat May 15, 2021 4:57 am
Your explanation was fine and I could solve my problem.
I just realized I did not say Thank you.

So. Thank you
You're welcome, and thanks for the update.
I'll close this topic now as "solved".

Feel free to start a new topic if you need help with anything else.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked