I am using Audacity to annotate a large amount of data. I need to go trough each track and add labels on intervals of interest. The labels are generally composed by the track’s name and a code: e.g., “track1_C00”.
Can anyone help me write a NYQUIST macro that takes the track name, opens a widget with all my codes (n = 9), and then concatenates both into a label at selection?
I know this is something I should figure out by myself but I would deeply appreciate some guidance.
Just one detail: Is there a way to have it add the label to the same label track? Every-time I create a new label it also creates a new track (screenshot attached).
To do that you need to make the selection on the audio track and the label track.
Make the selection on the audio track first, then “Shift + Click” the “Select” button on the left end of the label track.
(Alternatively, if the audio track and the label track are next to each other, you can click + drag the selection across both tracks).
That would take a lot of time because I would have to scroll down. However, when I export the labels (even when there are multiple tracks), Audacity creates a single .txt with all of them, which is exactly what I wanted. So it still works exactly as I needed even with multiple label tracks.
Thank you for your time. You just saved me many of hours of work.
Best!
(Unfortunately it is not possible to combine both bits of code in a single Nyquist plug-in because changing the selection can only be done as a “Tools” type plug-in, and returning labels requires an “analyze” (or “tools analyze”) type plug-in.