sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Daniel Jensen <jensend@iname.com>
To: sox-devel@lists.sourceforge.net
Subject: noisered vs Audacity's noise removal filter
Date: Fri, 26 Oct 2012 13:21:08 -0600	[thread overview]
Message-ID: <508AE2A4.3000808@iname.com> (raw)

I find that Audacity's "Noise Removal" spectral noise gate filter gives 
me much better results than SoX's noisered effect. However, since I have 
over a thousand files requiring noise removal which could all use the 
same noise profile, and since for that kind of a job Audacity's 
rudimentary batch processing is tremendously inferior to using the 
command line, I really wish I could use SoX.

The primary problem seems to be that SoX gives "tinkling" artifacts like 
those in badly encoded mp3s. My preliminary guess was that this meant 
that SoX is making the determination of whether frequencies are above or 
below the profiled noise gate level independently for each FFT bin and 
window, with the result that individual bins rapidly pop back and forth 
across the threshold.

Glancing briefly at the noisered source (not enough to really tell what 
it's doing) I see that ever since the initial checkin some barebones 
attempt has been made to smooth out that decision, with the humorously 
applicable comment "Audacity says this code will eliminate tinkle bells. 
I have no idea what that means." I think this must mean that the code 
was adapted from the method used by the old noise removal filter in 
Audacity 1.0/1.2, without a lot of comprehension of what was going on.

At some point in their 1.3 beta cycle Audacity improved their noise 
filter substantially by adding frequency smoothing and attack/decay time 
and associated parameters. (Again, I haven't yet looked closely enough 
to say how these are implemented.) In their wiki they say "if you set 
both of the "smoothness" sliders to zero, you'll get something very 
similar to the old noise removal algorithm in legacy Audacity 1.2.x 
which is prone to artifacts and distortion..." Sure enough, setting both 
the frequency smoothing range and the attack/decay time to zero gives 
results basically identical to SoX's.

It would also be nice to have a more comprehensible scale. Audacity's 
effect asks you to specify "noise reduction" in dB; this is much more 
intuitive than noisered's 0-1 scale and does a decent job of allowing 
you to match noise levels between different clips. (A sharp transition 
where the background noise level suddenly changes can in many 
circumstances be more of a problem than the noise itself).

Obviously since Audacity's filter is GPL'd  while SoX's effects are 
LGPL'd, code can't be shared. (Even if SoX decided that this could go 
under the GPL, since Audacity's filter is in WxWidgets-heavy C++ this 
wouldn't help much.) I know very little about how clean-room one has to 
be in reimplementing their ideas to avoid the result becoming a 
derivative work.

Thoughts?

------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/

             reply	other threads:[~2012-10-26 19:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26 19:21 Daniel Jensen [this message]
2012-10-27 18:17 ` noisered vs Audacity's noise removal filter Eric Wong
2014-12-30 11:42   ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=508AE2A4.3000808@iname.com \
    --to=sox-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).