Can the performance of Nyquist in Audacity be improved ?

Using Nyquist scripts in Audacity.
Post and download new plug-ins.

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

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by Robert J. H. » Mon Nov 03, 2014 10:12 pm

I don't think that Roger would be opposed to any changes in the memory management of Nyquist in Audacity.
He's already complained about it in the comments to his two-fold Normalize plug-in.
Also, he's written a Xlisp-based extention to the garbage collection which might be sufficient for stand-alone Nyquist but not for Nyq-inAud.
Robert J. H.
 
Posts: 1813
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 7

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by Paul L » Mon Nov 03, 2014 10:51 pm

Robert J. H. wrote:I don't think that Roger would be opposed to any changes in the memory management of Nyquist in Audacity.
He's already complained about it in the comments to his two-fold Normalize plug-in.
Also, he's written a Xlisp-based extention to the garbage collection which might be sufficient for stand-alone Nyquist but not for Nyq-inAud.


Pointers please, Robert? I am curious now.
Paul L
 
Posts: 881
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by steve » Tue Nov 04, 2014 12:39 am

Robert J. H. wrote:He's already complained about it in the comments to his two-fold Normalize plug-in.

That's to do with an implementation issue in Audacity rather than in Nyquist itself.
"S" is bound to the sound, and Nyquist plug-ins only get one bite at the cherry. In order to normalize, the entire sound needs to be analysed so that we can get the peak level, and we need to hang onto the sound (in memory) so that we can then amplify it. Ideally we should be able to access the sound block-wise whenever we need them, like internal effects do. (also on the agenda for "version 4").
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45326
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by steve » Tue Nov 04, 2014 12:58 am

Robert J. H. wrote:He's already complained about it in the comments to his two-fold Normalize plug-in.

Here's the article: http://www.cs.cmu.edu/~music/nyquist/debug-plugin.html
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45326
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by Robert J. H. » Tue Nov 04, 2014 1:29 am

steve wrote:
Robert J. H. wrote:He's already complained about it in the comments to his two-fold Normalize plug-in.

Here's the article: http://www.cs.cmu.edu/~music/nyquist/debug-plugin.html

Thanks for the link

I actually meant a discussion (which was probably the base for this article).
However, I can't locate it; I don't think that it was here on the forum.
It's essentially the same though.
Robert J. H.
 
Posts: 1813
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 7

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by steve » Tue Nov 04, 2014 3:13 am

Robert J. H. wrote:I actually meant a discussion (which was probably the base for this article).
However, I can't locate it; I don't think that it was here on the forum.
It's essentially the same though.

The question came up many times on the old Nyquist mailing list.
This is one such occasion: http://audacity.238276.n2.nabble.com/Ny ... 38715.html

The discussions eventually led to that article from rbd (the link in my previous post)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45326
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by Paul L » Tue Nov 04, 2014 3:36 am

Robert J. H. wrote:Also, he's written a Xlisp-based extention to the garbage collection which might be sufficient for stand-alone Nyquist but not for Nyq-inAud.


What does this refer to?
Paul L
 
Posts: 881
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: Can the performance of Nyquist in Audacity be improved ?

Permanent link to this post Posted by Robert J. H. » Tue Nov 04, 2014 4:54 am

Paul L wrote:
Robert J. H. wrote:Also, he's written a Xlisp-based extention to the garbage collection which might be sufficient for stand-alone Nyquist but not for Nyq-inAud.


What does this refer to?

I mean that the basic XLisp garbage collection routine is extended to meet the requirements of sound manipulation.
In other words: "*GC-HOOK*" links to "NY:GC-HOOK".
Code: Select all
(LAMBDA (HEAP-SIZE FREE-CELLS)
        (COND ((< (* FREE-CELLS 2) HEAP-SIZE)
               (LET* ((HOW-MANY-NOT-FREE (- HEAP-SIZE FREE-CELLS))
                      (SHOULD-BE-FREE (/ HOW-MANY-NOT-FREE 2))
                      (HOW-MANY-MORE (- SHOULD-BE-FREE FREE-CELLS))
                      (EXPAND-AMOUNT (/ HOW-MANY-MORE 2000)))
                     (COND ((> EXPAND-AMOUNT 0)
                            (IF *GC-FLAG*
                                (FORMAT T
                                        "[ny:gc-hook allocating ~A more cells] "
                                        (* EXPAND-AMOUNT 2000)))
                            (EXPAND EXPAND-AMOUNT)))))))


This does of course not replace a "modern" low-level collector.
Robert J. H.
 
Posts: 1813
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 7

Previous

Return to Nyquist



Who is online

Users browsing this forum: No registered users and 1 guest