I was examining what happens when I return different labels from a plug-in.
Select less than a second in the middle of a track of several seconds, and observe the behavior of these:
(list (list 1 2 “”)) – good label out of bounds of the selection to the right, makes sense
(list (list 2 1 “”)) – weird backwards label is produced with two endpoints and zero extent at its right endpoint!
(list (list -2 -1 “”)) – good label out of bounds to the left, makes sense
(list (list -1 -2 “”)) – weird label left of selection
Shouldn’t you be stopped from making the weird labels? Should Audacity either turn them right side around, or make an error dialog and make no labels?
On the other hand it is good that the out-of-bounds cases are handled reasonably and symmetrically. I make sometimes want to make a label endpoint just a half-sample before or after the selection.