George Fazekas wrote:
> James,
>
> General question: do you recommend working with the latest beta or the
> cvs head for small changes.
> to be honest my latest checkout is about a year old (i have found it
> quite stable to work with:-)
>
Generally I would say CVS head - that's what most active developers are
using.
> I'd like to look into that control track we discussed last week and
> thought looking at your existing
> threshold slider code would be a good start. My initial scan through
> track related classes
> wasn't too successful in finding it. Is it in CVS head already?
>
The by-track threshold slider is only in audacity-extra. You can see a
screenshot of it here:
http://sourceforge.net/project/screenshots.php?group_id=191299&ssid=54865You can see the threshold lines on the graph and that the slider has
four 'pips'. The code relies on being able to treat the wavetracks as
wxControls, which we can't yet do in Audacity. I don't recommend trying
to port that slider code at this stage. Porting it back to Audacity is
significant work. There is a much better return on investment in doing
the other part of labels-using-threshold. I'd suggest that the initial
version use an ordinary slider in a dialog called up from a menu. That
would prove the functionality of adjusting multiple labels based on a
graph and a threshold - without the complexity of the custom slider.
The labeltrack code in Audacity is probably the best place to start
looking at how to do labels-from-threshold. It's going to be simplest
for you to delete labels and recreate them rather than to adjust / merge
/ split as thresholds are moved up or down. Probably the text on the
labels needs to be auto-generated, as attempting to keep the text that a
user may have typed in looks (a) tricky, and (b) less useful. Once the
threshold is so high that there are no labels, all the text will have
been lost anyway, so trying to keep it as the threshold is adjusted
doesn't gain us much.
What thresholding options are you thinking of providing?
--James
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel