10-31-2009 03:13 PM
Hi all,
I did this VI:
If I connect "My sound to spreaker I obtaine te right processing I did.
However if I connect it to file write I obtain a totally deformed sound even if a did no processing.
did anyone know how to solve this problem?
thanks
11-02-2009 02:06 PM
Where did you insert your file write?
One high-level observation is that you are using filters in a loop to process multiple channels. This can lead to poor results because it incorrectly allows filter state to be swapped between channels. Playing the waveform to the sound output of your computer can significantly change the execution or timing of the program depending on how it is implemented. Please attach your VI.
11-02-2009 03:25 PM
here is my VI. You can compare sound output and file output.
250Hz 3rd order Highpass butterworth fileter
20kHz 3rd order Loawpass butterworth filter
and filter with this TF:
using FFT, Mathscript, and FFT-1 was the only way I found to do that (Control and simulation Transfer functions don't work correctly in this case)
11-02-2009 03:26 PM
11-04-2009 09:25 AM
Hi,
You forgot to configure the sound format of sound file write open vi. By default the sample rate is 22100 kHz, is that why the sound on the file was bad.
I changed you're Vi (I just add a wire between sound file write open vi and the sound file info vi).
Regards
Yann C.
France