LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate the frequency of a signal obtained through a computer's sound card

I wrote a program that gets an audio signal from my computer's sound card.  My goal is to be able to play a note on a keyboard and get that note's frequency.  Can anyone show me some code that might help me out?  Or at least point me in the right direction?
0 Kudos
Message 1 of 9
(3,316 Views)
hi there
 
please search the examlpes database (see scrennshot).
 
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 9
(3,309 Views)
The graph is pretty neat but other then that, it won't work, the Frequency sticks around 7.  Is there are other code I could look like?
0 Kudos
Message 3 of 9
(3,278 Views)

Search the examples for frequency and open this file.

 

C:\Program Files\National Instruments\LabVIEW 7.0\examples\measure\maxmpl.llb\Basic Single Tone Measurements.vi

0 Kudos
Message 4 of 9
(3,254 Views)

hi there

make sure you chose the correct device number of your mic.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 5 of 9
(3,243 Views)
I'm sure I've got the right device number, I can get the amplitude and graph the signal.  I just can't get the frequency and it's a little frustrating.  Thanks for your help though.
0 Kudos
Message 6 of 9
(3,234 Views)
Are you recording stereo or mono data??
0 Kudos
Message 7 of 9
(3,232 Views)
mano
0 Kudos
Message 8 of 9
(3,228 Views)

hi there

what is the unit of "7"? if you mean 7Hz then remember that most sound cards have a range of 20Hz-20.000Hz, so in that case just ignore that data (low frequency noise). send us some data and code so we can have a look.

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 9 of 9
(3,222 Views)