03-30-2014 02:33 PM
Hello,
I am trying to generate a sound using more or less the example VI Generate Sound, but with a slider instead of the text input for the frequency, and the problem is that whenever i change the sound data (frequency or volume), the sound seems stepped, like a serie of "beeps". It is really unpleasant.
Sorry for my probables English mistakes, and thank you very much beforehand if someone could give me a bit of help.
04-05-2014 02:50 PM
hi,
i am attaching a vi with different sound generation options. also attaching the snapshot if vi is not opening in your LV.
regards
04-09-2014 04:06 AM
Thank you for your answer, but these 3 options don't seem to work.
The 1st, "beep", uses the beep component in the computer, but it creates a sound that ain't really pleasant.
The 2d creates a sine waveform like i had already tried, but either it is really slow to react, or it is stepped (depending on the sample rate).
For the 3rd i don't really understand, it creates an horrible screeching and LV crashes after 2s, telling that memory is full.
04-09-2014 09:14 AM
there are some issues with my 3rd option
i put the config sound in the while loop which is a mistake
i also done some setting sampling rate number of samples etc
now it is playing fine without any memory full error and no stepped beep. i generate 1000 Hz freq
see my attachement
04-11-2014 02:58 AM
I don't know if it is because i didn't really understood your VI, but when I generate a sound it takes about 5s to react, and with oddly high frequencies (with the slider at 200 Hz, I have like a 4000 Hz sound...).
04-11-2014 05:18 AM
set the values of number of samples in sound configuration vi to 44100 and set sinewave sampling freq to 44100. also set the number of samples in sinewave vi to 40000. see the picture. every time you run your vi the values get changed so select the parameters controls and after setting them as per above right click and select 'make it as default' option
04-11-2014 05:44 AM
Thanks, now I have a normal frequency, but the sound still takes 4-5s to react when i change the value of the slider.