How can I select audio between every other label?

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
ldg7991
Posts: 1
Joined: Wed Nov 04, 2020 9:58 am
Operating System: Windows 10

How can I select audio between every other label?

Post by ldg7991 » Wed Nov 04, 2020 10:04 am

Windows 10, Audacity 2.3.3

Hi all,

I'm creating a piece of audio that requires me every half a second or so to shift the pitch, for the first half of the second the pitch will be shifted up and the second half of the second it is shifted down.

By going to Tools/Regular Interval Labels, I've created labels marked at every half a second in my audio to ensure that I select as accurately as possible. I was wondering if I could bulk select every other label (i.e. between Label01-02 and Label03-04, but not between Label02-03) as this would make creating these pieces a lot easier and less painstaking than selecting between every label manually, especially in a larger piece

I'm probably missing something hidden in plain sight, but any advice would be greatly appreciated

Thanks in advance :)

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

Re: How can I select audio between every other label?

Post by steve » Wed Nov 04, 2020 1:00 pm

ldg7991 wrote:
Wed Nov 04, 2020 10:04 am
By going to Tools/Regular Interval Labels, I've created labels marked at every half a second in my audio to ensure that I select as accurately as possible. I was wondering if I could bulk select every other label (i.e. between Label01-02 and Label03-04, but not between Label02-03) as this would make creating these pieces a lot easier and less painstaking than selecting between every label manually, especially in a larger piece
The way I would do it would be to create two label tracks.

Label track 1 would have region labels:
0 to 0.5, 1 to 1.5, 2 to 2.5, ...

Label track 2 would have labels:
0.5 to 1, 1.5 to 2, 2.5 to 3, ...


To create label track 1, select the entire length of the required label track and run this code in the Nyquist Prompt effect:

Code: Select all

(setf region-length 0.5)  ;length of each label
(setf label-space 0.5)    ;distance between labels

(setf interval (+ region-length label-space))
(setf dur (get-duration 1))
(setf labels ())

(let ((dur (get-duration 1)))
  (do* ((start 0 (+ start interval))
        (end region-length (+ start region-length)))
       ((>= end dur) labels)
    (push (list start end "") labels)))

To create label track 2, adjust the start of the select to 0.5 seconds and ensure that the first label track is NOT selected. Then run that Nyquist code again.

Tracks001.png
Tracks001.png (17.45 KiB) Viewed 56 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Trebor
Posts: 9962
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: How can I select audio between every other label?

Post by Trebor » Wed Nov 04, 2020 3:23 pm

ldg7991 wrote:
Wed Nov 04, 2020 10:04 am
I'm creating a piece of audio that requires me every half a second or so to shift the pitch, for the first half of the second the pitch will be shifted up and the second half of the second it is shifted down ...
Tremolo/vibrato plug-in (TremVib.ny) on vibrato (& square-wave modulation ?).

Post Reply