LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the number of samples of an audio signal?

Hi,

I used "Sound File Read Simple vi" to read an audio signal.

I want to know the total number of samples of that particular audio signal.

Is there any other block to find that?
Waiting for the replies.Thanks in advance.

Rakesh

0 Kudos
Message 1 of 4
(2,816 Views)

That function returns a 1-D array of waveforms.  Use Index Array to get one of the waveforms.  Use Get Waveform Components and get the Y data array.  Use Array Size on that.

 

Message Edited by Ravens Fan on 04-17-2010 12:59 AM
0 Kudos
Message 2 of 4
(2,815 Views)

i am trying to divide the total number of samples into 4 groups and i want to see those samples on the front panel.

i am attaching my vi,could you please fix that 

 

Thanks,

Rakesh

0 Kudos
Message 3 of 4
(2,799 Views)

Instead of making Rube type code why not use this VI. It will give you all you need about number of samples and other timing info.

Sound File Info VI
Owning Palette: Sound Files VIs
Requires: Base Package
Retrieves data about a .wav file. This VI accepts either a path or a refnum



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 4
(2,784 Views)