Plugin to create labeled selection

Using Nyquist scripts in Audacity.
Post and download new plug-ins.

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

Plugin to create labeled selection

Permanent link to this post Posted by afrantisak71 » Fri Aug 26, 2016 10:02 pm

I want to create a plugin to generate labeled selections. I can create labeled selections manually but can't figure out how to do it in a plugin. The "Regular Interval Labels..." plugin only creates "point" labels. Labeled selections have a "start" AND an "end" are great for looping, etc. I've looked at the code and it looks like the nyquist plugin return value interface only allows you to create "point" labels, i.e. only a time and label text per each label. Is there a way to create labeled selections?

OS: Linux
afrantisak71
 
Posts: 2
Joined: Fri Aug 26, 2016 9:49 pm
Operating System: Linux *buntu

Re: Plugin to create labeled selection

Permanent link to this post Posted by steve » Sat Aug 27, 2016 9:23 am

afrantisak71 wrote:Is there a way to create labeled selections?

Yes. You just need to use two numeric values instead of one.
See: http://wiki.audacityteam.org/wiki/Nyqui ... urn_Values
Example:
Code: Select all
(list (list 1.0 2.5 "first label") (list 4 5 "second label"))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45075
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Plugin to create labeled selection

Permanent link to this post Posted by afrantisak71 » Sat Aug 27, 2016 8:41 pm

I guess I must have been looking at an old doc. Thank you I will try it
afrantisak71
 
Posts: 2
Joined: Fri Aug 26, 2016 9:49 pm
Operating System: Linux *buntu


Return to Nyquist



Who is online

Users browsing this forum: No registered users and 1 guest