03-03-2006 09:54 AM
03-06-2006 09:28 PM
Gurdas,
You are right in what you are trying to do can probably be done without the sound and vibration toolkit. In general, that toolit is geared towards analyzing signals, not producing them. However, I think what you are trying to do can be done with some of LabVIEW's analysis VI's.
One specific VI that might be helpful is the Inverse FFT VI. This VI takes an array of complex FFT data and returns an array of the actual values that would produce such results. In general, when you take an FFT of a signal in the time domain, your result will be an array of amplitudes in the frequency domain (dB vs frequency). However, we typically only think about the real values associated with this calculation. The often forgotten part is that taking an FFT also gives us phase information as well, in the form of complex data. Thus, while we normally view the "real" data, there is a forgotten complex side of an FFT graph that tells us phase information. My point here is that this might be helpful when reconstructing an actual signal from your dB vs Frequency array.
03-08-2006 08:36 AM
Dear David,
Thanks for replying.
Kindly refer to attached screen shot of my code.
Heres what I am doing:
1) Reading Freq. and dB values from a file
2) Doing an Inv FFT on the dB values
3) Decimating the output from Inv FFT so that it comes close to 44.1Khz (because my original time data sampling was at 75.59 Khz). Do I need to do this?
4) Convert decimated array to U16 data type and play it.
What I get is trash sound (very sharp and noisy) which is unlike what is expected.
My questions:
1) Do I need to have "replay sampling rate" exactly same as original time data sampling rate? If yes, how can I convert my 75.59Khz data to say 44.10 KHz?
2) Am I making some mistake in my code? I have not used the Freq. data and this makes me uncomfortable.
Thanks,
Gurdas
.
03-09-2006 11:52 PM
Could you post an example of the data file you are using as input? Also, have you looked at the waveform you are sending to the sound write VI? You would want to send in a smooth, continuous waveform. Do you have an expected output that you could compare it to?
-Justin
03-10-2006 02:45 AM
03-11-2006 06:32 AM
All,
How do I insert copyright information into the .wav file?
I would like the .wav file to display our company name when it is run. This information should be inerasable (to the extent possible).
Thanks,
Gurdas
03-13-2006 05:13 PM
03-14-2006 02:35 AM
Dear Sulzer,
Thanks for the input. I shall checkout what is available out there.
However, I am also happy with minimalistic "copyright" information going into the .wav file and would be glad if this can be done in a simple and easy manner. Let me rephrase my requirement.
I would like to display some string (such as song name in song files) that comesup when my .wav file is played. I have seen this in .mp3 files. How about .wav files?
I do NOT need any digital signatures.
One method (though quite naive) is to insert an audio announcement into the file! But I guess this might act as an irritant because it will play everytime the file plays.
Let me know your thoughts.
- Gurdas
03-14-2006 04:27 AM
03-14-2006 05:40 AM
Hi GerdW,
Thanks. I checked the link and had only more questions at the end!!
I am able to write .wav files from the standard LV functions. I have never worked with audio formats before and might be unabe to understand even 'simple' ideas (so pls elaborate on your solution).
1) Is the Label chunk the right place to hold my company name?
2) Will the label chunk get displayed each time the file is played?
3) If answer to both of the above is 'yes', then, how do I write to the label chunk in LV?
Best rgds,
Gurdas