Deconvolution

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2009
Posts: 4
Reputation: jspeakers is an unknown quantity at this point 
Solved Threads: 0
jspeakers jspeakers is offline Offline
Newbie Poster

Deconvolution

 
0
  #1
Mar 26th, 2009
Hi,

I am not that great with C++ but I am trying to write code that will be able to import 2 wave files I have - the first file is my sine wave sweep file the second is my impulse response of the room. Once imported I wish to de-convolve the sine sweep tone from the impulse response of the room and so leaving just the sound of the rooms acoustics.

I have no idea how to write the code to perform deconvolution I have read numerous pages be its very confusing can some one help me write this code or point me in the write direction.

I have started to try to understand Convolution by creating 2 sine waves in Excel then save the data as text files and use these as my two files to import into my C++ code and convolve - this appears to work as the C++output looks the same as what I have crated in Excel.

If some one can help I will be very grateful.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 943
Reputation: MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice 
Solved Threads: 92
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is offline Offline
Posting Shark

Re: Deconvolution

 
0
  #2
Mar 26th, 2009
Something like Natural Frequency or Resonance?
Look up Alvin Luciers works that dealt with that.
Last edited by MosaicFuneral; Mar 26th, 2009 at 4:17 pm.
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 476
Reputation: nucleon has a spectacular aura about nucleon has a spectacular aura about 
Solved Threads: 91
nucleon's Avatar
nucleon nucleon is offline Offline
Posting Pro in Training

Re: Deconvolution

 
0
  #3
Mar 26th, 2009
What is the format of the wave files? Is it PCM or are they compressed?
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 4
Reputation: jspeakers is an unknown quantity at this point 
Solved Threads: 0
jspeakers jspeakers is offline Offline
Newbie Poster

Re: Deconvolution

 
0
  #4
Mar 26th, 2009
Hi Nucleon

Yes the format is PCM
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 476
Reputation: nucleon has a spectacular aura about nucleon has a spectacular aura about 
Solved Threads: 91
nucleon's Avatar
nucleon nucleon is offline Offline
Posting Pro in Training

Re: Deconvolution

 
0
  #5
Mar 26th, 2009
Here's a piece of a program I wrote to play with PCM wave files. It displays the header information. Run it on both of your files and post the results back here. The filename is hardcoded in the first line of main. Uncomment the last line if you need to pause the console.
Attached Files
File Type: cpp readWav.cpp (2.3 KB, 3 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC