working with nyquist and aud-do,
selecting audio then calculating a result (in this case a guess at the note),
then creating a label at the selection, and placing the result into the label.
These two don’t work:
because I haven’t found a way to put the result into the pastebuffer/clipboard.
(2) AddLabel and then SetLabel,
because you have to know the number of the new label…
but you don’t, because the numbering is timeline-chronologic, not creation-time-chronologic,
so even if you can get the current count of #labels,
(and p.s. how to do that?)
you’ll be filling in the wrong label if the new label is not the last on the timeline.
If you only need to deal with one label track at a time, you can create labels directly from Nyquist rather than using AUD-DO. This is faster and more efficient than AUD-DO. You just have to return a correctly formatted list.