06-19-2011 04:36 AM
I don't know if I have posted this on a correct location (kinda new here).
I am trying to demonstrate the effect of multiplying a constant to a waveform. I have a sound file read by Sound File Read Simple.vi. Then I am trying to scale the amplitude of the signal by a constant number. I've tried three methods for this: the Numeric Multiplication, the express VI Scaling and Mapping, and the scaling and conversion VI of Signal Express. The waveform shows that the amplitude of the scaled signal is indeed scaled, but when played thru the play waveform VI, the sound level is still the same, no matter how much I am scaling the input. Does anyone why is this so? Also, I really wanted to show that scaling an audio waveform results in a louder waveform. How do I do this? As much as possible, I've wanted to use simple VIs as the class is an introduction to signal processing and the students (and so am I) are still finding our way into LabVIEW (we used to use MATLAB in the course).
06-19-2011 05:54 AM
Are you the Teacher in this class?
06-19-2011 02:16 PM
By the way the data sent to the sound card is normalized by the Labview functions. So using the scale Express VI. Will not affect the sound volume.
05-18-2012 08:23 PM
I´m having the same problem. Is that a way to amplify the sound on speakers? I´m working on a low frequency signal (100-300hz). Actually I have a PCG signal and I need to listen to the heart sound on the speakers. Anybody knows how can I do this?
Best regards,
05-21-2012 06:35 PM
Hi kirkbardini,
According to this article about Low Volume From Sound VI, you can use a scalar multiple to increase the volume of a sound saved to a .wav file, so you should be able to do this before playing it. Does that not work for you?
05-22-2012 08:13 AM - edited 05-22-2012 08:15 AM
@JaymeW wrote:
Hi kirkbardini,
According to this article about Low Volume From Sound VI, you can use a scalar multiple to increase the volume of a sound saved to a .wav file, so you should be able to do this before playing it. Does that not work for you?
That information is for Labview 7.x and hence outdated. As mentioned before. Labview do a normalization before sending data to the sound card. As you know sound cards are most often 16 or 24 bits. And in most cases data input to a sound card is in DBL type. After normalization the data is converted so the floating point value 1 represent full scale output on data sent to the the sound card DA. To get any further I suggest kirkbardini take the time needed to send us his/hers current code. Then we may solve things from there
05-31-2012 07:39 AM
Coq Rouge and JaymeW, thank you for answering my question.
JaymeW,
I tried increase the volume using a scalar multiple, but it didn't work.
Coq Rouge,
I'm working with LabVIEW 2011, so this explains why the use of a scalar multiple didn't work. Thank you!
Now I don't have the current code here with me. I can send you the code tonight when I am at home.
Regards,