de-click via differentiation then limiting then integration

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
Paul L
Posts: 1782
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: de-click via differentiation then limiting then integrat

Post by Paul L » Sat Oct 26, 2013 12:23 am

You may be losing less signal than you think. If you subtract the original from the modified signal, there may be phase shifts in retained frequencies, giving the false impression that you are subtracting some of the real sound. If original is a sine wave and modified is shifted half a cycle, for instance, the difference is even louder than either.

Or in other words the power spectrum of the difference is not the difference of power spectra.

Is there a better way to calculate the perceptual difference of sounds?

If you use Nyquist's slope and then integrate the result, the sound is not unchanged, but it loses the last signal and is offset to begin with a zero sample. This is not phase shifted, but perhaps the other steps introduced shifts.

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

Re: de-click via differentiation then limiting then integrat

Post by Paul L » Sat Oct 26, 2013 12:31 am

Also the slope function seems always to assign a zero start time, contrary to the documentation, which might matter in other programs, but not in the sound returned to Audacity, which ignores the sound's start anyway and only uses the sample sequence.

Trebor
Posts: 9847
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: de-click via differentiation then limiting then integrat

Post by Trebor » Sat Oct 26, 2013 5:12 am

Paul L wrote:You may be losing less signal than you think. If you subtract the original from the modified signal, there may be phase shifts in retained frequencies, giving the false impression that you are subtracting some of the real sound. If original is a sine wave and modified is shifted half a cycle, for instance, the difference is even louder than either.
The destructive interference was just to get an approximate idea of the frequency content of what was being removed.
Paul L wrote: ... Is there a better way to calculate the perceptual difference of sounds?.
Superimposing the spectrograms ? ...
before-after spectrograms showing the spectral content of noise removed.gif
looks like frequencies over a wide range (at least half the frequency range of the sample) are being removed
before-after spectrograms showing the spectral content of noise removed.gif (339.6 KiB) Viewed 688 times

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

Re: de-click via differentiation then limiting then integrat

Post by Paul L » Sat Oct 26, 2013 5:56 pm

Are those spectrograms really different?

Tell me how to make such pictures in case I need to demonstrate befores and afters too.

I was wondering if there is a way to present the difference of spectra aurally, better than just subtracting one signal from another.

Trebor
Posts: 9847
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: de-click via differentiation then limiting then integrat

Post by Trebor » Sat Oct 26, 2013 6:57 pm

Paul L wrote:Are those spectrograms really different?
I can see vertical spikes in the "before" spectrogram which aren't in the "after", their timing corresponds with the noises isolated by the destructive-interference method.
Paul L wrote:Tell me how to make such pictures in case I need to demonstrate befores and afters too.
I used free photoshop-type software called GIMP to created a simple gif animation : (the fiddly bit was getting the two spectrograms perfectly aligned).
Paul L wrote:I was wondering if there is a way to present the difference of spectra aurally, better than just subtracting one signal from another.
The difference can be detected by having the "before" and the "after" tracks playing simultaneously (and in-sync) and toggling between the recordings.

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

Re: de-click via differentiation then limiting then integrat

Post by Paul L » Sat Oct 26, 2013 11:57 pm

Of course there is that method, but is there any way to listen to something that approximates the difference of power spectra without that bit of murmur of the original that could only be phase shift?

Audacity's noise removal for instance has an isolate radio button. I could not get rid of the murmur and naively thought at first that I was losing some signal with the noise. But maybe not.

Post Reply