Click here to Skip to main content
16,016,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am trying to reduce the noise in a .wav file output while it is played by the system. Based on the Article by Jeff Morton ( Sound Activated Recorder with Spectrogram, I am able to get the spectrogram and Frequency Domain display. However, I realised that there is too much of audio in the output that blurs the display. From various articles, I understood that autocorrelation can be used to reduce the noise.But I am not able to understand how to implement it in C# in line with the code of Jeff Morton.
Can anyone help me please?
GeoNav
Posted
Comments
Albin Abel 20-Mar-11 23:19pm    
So what is the idea. Use autocorrelation and remove the amount of amplitudes which is not correlated with the trend in the frequency domain?

1 solution

It is not clear why do you want to reduce the noise. If you want to reduce the blur on the display (I don't think you can call it blur, but probably you mean a blurry look of the spectrogram as it is shown in Jeff's work), you can reduce number of points on the spectrogram grouping close frequencies together and showing average amplitude for a group as abscissa value. Ask Jeff for more detail on his Article's page, see "Comments and Discussions" at the end of the page.

I don't think you can reduce the noise in the sense your are interested in by using auto-correlation method. The power of this method could help to detect hidden periodic signal (such in a rhythmical base of it) but hardly could clean up a "technical" noise generated by non-linear distortions or other defects of the recording process without strong distortion of the audio. See http://en.wikipedia.org/wiki/Auto-correlation[^], pay attention for discreet autocorrelation for signal processing. If you need to estimate effective average pitch of the recorded instrument sound (which is required by digital instrument tuners) or detect musical beats in the uniform-tempo musical samples, it could help; in all other cases, when all such characteristics "flow" at fast pace, you will only mess up the audio.

For other methods of noise control, see http://en.wikipedia.org/wiki/Noise_reduction[^], http://en.wikipedia.org/wiki/Noise_control[^].

—SA
 
Share this answer
 
v2
Comments
Albin Abel 20-Mar-11 23:15pm    
Good discussion
Sergey Alexandrovich Kryukov 20-Mar-11 23:20pm    
Thank you, Albin.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900