If I create several empty labels on an Audacity 2.4.2 audio track (by clicking at various points along the track, and pressing Ctrl-B
after each click), the Nyquist Prompt evaluates the expression
(cadar (aud-get-info "Labels"))
...to a list L whose elements are, in turn, 3-element sublists. For the sake of this description, I will refer to these 3-element sublists as "triples".
As it happens, for each of these triples, the first two elements are identical floating point numbers, and last element is the empty string.
Thus, a typical instance of such a list L may begin with something like
((0.12345 0.12345 "") (6.78901 6.78901 "") (23.45678 23.45678 "") ...
How can I create a new list consisting of all the first elements of such a list L?
For example, if my initial list L begins as shown above, what Nyquist expression involving the list L will evaluate to a list beginning as shown below?
(0.12345 6.78901 23.45678 ...)
(I tried stuff like (mapc (lambda (x) x) (cadar (aud-get-info "Labels")))
, which not only failed to produce the desired result, but in some cases actually caused the addition of several new labels to the track, something I find completely bewildering. Therefore, as strange as this may sound, I must stress that I am looking for solutions that leave the original interface unchanged, and, in particular, do not add any new labels the currently selected track.)