Regular Interval Region Labels

This read-only archive contains discussions from the Adding Feature forum.
New feature request may be posted to the Adding Feature forum.
Technical support is available via the Help forum.
Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Region Labels

Post by Gale Andrews » Tue Jan 07, 2014 7:51 pm

steve wrote:
Gale Andrews wrote:I can't see any use if I ask for three region labels to have to have a fourth label in the body of the selection. Can you?
No, but that is a peculiarity of the original plug-in design. As we have a control for "and one more label please" we need to decide what to do with it.
I vote for "at the end of the selection" or don't have the final label at all.
steve wrote:I'd be happy to lose the "Add final label" option. The "Adjust label interval to fit length" would then either, make the "label interval" fit to the selection (YES) or the last labeled region would end at the end of the selection (NO).
As with the final label in "Sound Finder", a final label "may" have some use if the selection is not the entire track.

I'm still (just about) OK with keeping the final label.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Regular Interval Region Labels

Post by steve » Tue Jan 07, 2014 7:54 pm

Gale Andrews wrote:If user wants Label interval of 2000 seconds, they would have to type it if there was a slider with any reasonable range. So they are not losing anything by having a slider.
If, for example, there is a slider with a range of 200, and they type 2000 (or any value beyond the slider range), the value is not retained when they next use the effect.
With text input, they can type "hello world" and although it is an invalid value, it is retained because it is valid input for a text widget. Of course the benefit is that if they want a label interval of 1 hour they can type 3600 and the text widget will retain it (for the duration of the session).

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

Re: Regular Interval Region Labels

Post by steve » Tue Jan 07, 2014 7:58 pm

Gale Andrews wrote:
As we have a control for "and one more label please" we need to decide what to do with it.
I vote for "at the end of the selection"
Which would mean that this is wrong:

Image
Gale Andrews wrote:or don't have the final label at all.
Which means that we have a control that "doesn't work" and will probably be reported as a bug.

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

Re: Regular Interval Region Labels

Post by steve » Tue Jan 07, 2014 8:02 pm

I'm still not clear what you are suggesting Gale,
Perhaps it would help if you could show some screen shots to illustrate how you think it should work.

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

Re: Regular Interval Region Labels

Post by steve » Tue Jan 07, 2014 10:21 pm

To be clear, this addition to the plug-in does not change any existing feature in the current plug-in.

The slightly weird looking behaviour that you point out is already in the plug-in that we have been shipping for however many years. The new feature just makes the strange behaviour visible in a different way, but the "weirdness" is already in the algorithm.

Here is an example that illustrates the current weirdness:

1) Generate a tone 5 seconds duration.
2) Add Regular Interval Labels:
  • Time of first label = 0.
  • Label Interval = 2 seconds.
  • Add final label = No.
  • Adjust Interval to fit length = No
Only 2 labels are produce. The first at 0 seconds and the second at 2 seconds.
Why is there no label at 4 seconds? There is room for another label and I asked for labels every 2 seconds so where is the label at 4 seconds?
2secondintervals.png
2secondintervals.png (13.43 KiB) Viewed 1627 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Regular Interval Region Labels

Post by steve » Tue Jan 07, 2014 11:37 pm

Gale Andrews wrote:Also the other seconds boxes have no slider.
On reflection, the other text boxes have reasonable error checking, so I'm happy to make this a text input too. I've updated the plug-in in the first post.

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

Re: Regular Interval Region Labels

Post by steve » Wed Jan 08, 2014 12:17 am

Some more ideas:

How about reducing the number of controls by combining "Label text", "Minimum number of digits in label", and "Begin numbering from:" into one text control?

As we have text input for the "time" values, why not allow hours:min:seconds.milliseconds?

As we have text input for "Label interval" and "Number of Labels", why do we need the slider for "Number of Labels"?
ril.png
ril.png (28.52 KiB) Viewed 1624 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Region Labels

Post by Gale Andrews » Wed Jan 08, 2014 3:46 pm

steve wrote:
Gale Andrews wrote:or don't have the final label at all.
Which means that we have a control that "doesn't work" and will probably be reported as a bug.
Obviously it means that the control for the final label would be removed, but I think that control is of use in fringe cases.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Region Labels

Post by Gale Andrews » Wed Jan 08, 2014 4:03 pm

steve wrote:
Gale Andrews wrote:
As we have a control for "and one more label please" we need to decide what to do with it.
I vote for "at the end of the selection"
Which would mean that this is wrong:

Image
You don't give the settings used to produce those labels, but there is nothing obviously wrong with it if user did not ask for a final label.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Region Labels

Post by Gale Andrews » Wed Jan 08, 2014 4:11 pm

steve wrote:I'm still not clear what you are suggesting Gale,
Perhaps it would help if you could show some screen shots to illustrate how you think it should work.
The Manual says:
Adjust label interval to fit length

If you choose the default Label Interval placement method, the default Yes setting for this control adjusts your chosen label interval if necessary to make all the audio segments of equal length.
So I expect "Adjust label interval" to have no effect if I am placing by number of labels. :?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked