LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to transform an audio file to a constant

Hey,

 

I'm trying to transform a song to a constant. I'm creating an .exe and the audio file is always going to be the same. I prefer not to use a path selector so the user doesn´t use the incorret file.

 

Can someone help me please? A person told me to load the song in a waveform and then save it, but I'm not able to do it. I'm getting errors all the time. Can someone explain me all the process please?

 

Thanks a lot in advanced,

 

R

 

 

0 Kudos
Message 1 of 3
(2,099 Views)

Use the "Sound File Read Simple.vi" to read in a .wav file and wire up the output data to a waveform indicator on the front panel.

Once you've run the VI, right-click on the waveform terminal on the block diagram and select 'Create' > 'Constant'.

 
You can then take this constant and wire it up to the "Play Waveform" express VI.

 

 

 

Download All
0 Kudos
Message 2 of 3
(2,085 Views)

Thank you VERY MUCH!!!

 

I did it!!

 

R

0 Kudos
Message 3 of 3
(2,062 Views)