I tried this thing now, and there are two things that comes to mind:steve wrote: ↑Sun May 02, 2021 11:41 pmHow about running this script in the Nyquist Prompt (https://manual.audacityteam.org/man/nyquist_prompt.html). This acts directly on point labels that are in the first label track:
Code: Select all
;type tool (setf labels (cadar (aud-get-info "Labels"))) (let (start end txt (indx 0)) (dolist (label labels "") (setf start end) (setf txt (third label)) (setf end (first label)) (when (and start end) (aud-do (format nil "SetLabel: Label=~s Text=~s Start=~s End=~s~%" indx txt start end)) (incf indx))))
- Swedish characters (åäöÅÄÖ) doesn't seem to be supported, they are all replaced with underscores.
- Unnecessary regions are created: It seems like last End tag and next Start tag is converted to a region as well, which is not wanted. What I want is this:
Let's say I have 6 labels, L1–L6. All odd labels are start labels and all even labels are end labels. The regions I then want are the following:
[L1]————[L2] [L3]————[L4] [L5]————[L6]
But I also get:
[L2]—[L3] [L4]—[L5] in between the wanted regions.
To begin with, is it possible to overcome the lack of UNICODE support?
I will study the code further and look some things up to see if I can understand the code better and maybe modify it myself to remove (or never create) those unnecessary regions, but all help are appreciated.