Understanding the progress indicator

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Paul L
Posts: 1782
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Understanding the progress indicator

Post by Paul L » Fri Oct 25, 2013 7:44 pm

How are calculations of my Nyquist script reflected in the progress indicator? How can I make its progress more smooth?

I have inferred that progress through the first half reflects what portion of the input sound has been examined at least once. I am not sure how to interpret the other half. Sometimes the indicator disappears soon after reaching halfway: total time was overestimated throughout by twofold. Sometimes there is a long stall at halfway and a rapid filling up just before completion.

Paul L
Posts: 1782
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: Understanding the progress indicator

Post by Paul L » Fri Oct 25, 2013 7:50 pm

I understand that if my calculations make multiple passes over the sound, communicating intermediate results in lists, then progress will only indicate the first pass and stall during the others. Calling (snd-length s ny:all) early is the simplest example. If instead I reorganize them as interleaved, communicating by "streams" (lazy lists, generators, iterators, whatever you prefer to call the technique), then behavior of the bar is better.

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

Re: Understanding the progress indicator

Post by steve » Sat Oct 26, 2013 12:23 pm

The progress indicator for Nyquist effects is an approximation but Audacity is not really aware of what Nyquist is doing. For effects, Audacity looks at the length in samples and guesses how long Nyquist will take. Depending on what Nyquist is doing Audacity may be able to check the progress part way through and adjust the progress bar accordingly. It should be possible to make the progress bar more accurate and smoother in version 4 plug-ins, but that is still in an early experimental stage.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply