This makes a big improvement in some cases. In particular it is highly beneficial in cases where the retained audio fails to mask the background noise (such as low piano notes with background tape hiss).

This particular use case is accommodated to some extent  by the "Sensitivity" control, but this patch accomplishes the task much more effectively than increasing the "Sensitivity".

>From my initial tests, this patch addresses one of the main weaknesses of the current Noise Removal effect (well done Marco :-)

What I would suggest is replacing  the current "Sensitivity" control with a slider that sweeps between gating (old effect) and subtraction (new effect).

There are cases where the new method is better than the old, and vice verse. I expect there will be cases where settings between the two will work best, but that will revealed through broader testing.


On 27 December 2013 16:28, Marco Diego Aurélio Mesquita <> wrote:
Hi devs!

I'm experimenting again with AudNR. The attached patch is a simple
code improvement that I'd like to see committed. It should not change
the way AudNR behaves.

One thing: there's a small catch in the patch. It adds a commented
line of code, and this comment is there for a reason. If the line is
uncommented, AudNR changes its behavior from multi-spectral noise
gating to spectral subtraction. On some files, spectral subtraction
will be better than multi-spectral noise gating. If anybody is
interested in testing it, it is as simple as uncommenting the line and
recompiling audacity.

Now, I know it has been discussed before, but if Audacity developers accept
to add one more slider on the AudNR, it would be possible to add one
slider to smoothly select between spectral subtraction and
multi-spectral noise gating. From my tests (sorry, I can not post any
file) it is a very welcome addition to AudNR.

Testers, experimenters and restoration enthusiasts (I'm looking at you
Steve) it would be great to hear from you what do you think about the
results of comparisons between both methods. Audacity devs, if you
allow, I'm willing to add this one more slider to AudNR. It really
makes a difference.


Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
audacity-devel mailing list