Label Track Info

A feature request was logged on Audacity’s GitHub pages:

Proposal Label Track Info #2410

When there are more than a handful of labels it’s often difficult to determine their exact number and type (point or region); one must either visually count them or open the Label Editor dialog, scroll to the bottom of the dialog, and examine the line number of the final item.

Occasionally there will be labels before time-zero; this can occur when a label exists at a place in the track which has been shifted before zero with the clip-handle drag-bars.

This was originally logged in 2014 as a Proposal in the Audacity Wiki:

Getting the label data into Audacity is relatively straightforward thanks to Audacity’s Scripting Commands, which can be accessed via “AUD-DO“.

However, you may notice that AUD-DO returns a list in the form of a dotted list, in which all of the information of interest is in the string:

Parsing the string to extract the information in a usable form is rather a pain, so I added a function to Audacity (available since Audacity 2.3.0) called “AUD-GET-INFO“. This works much like (aud-do “GetInfo:…), but with simpler syntax and the return value is a valid Nyquist list expression.

The Plug-in (LabelSummary.ny):


Installation (and enabling after installing) is in the usual way for Nyquist plug-ins. See: Instructions in Audacity manual
When installed, the plug-in will appear in Audacity’s “Tools” menu as: “Label Summary”.

Running the plug-in:

Simply click on “Tools menu > Label Summary”.
The plug-in will display a summary of the labels in the project, looking similar to this:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.