Jump to content

Audio analysis in LabVIEW


Recommended Posts

Hi,

I am fairly new to LabVIEW and require some assistance. I want to be able to play a song and have LabVIEW detect the beat of the song (the lower frequency spectrum) in realtime. Every time a beat is detected, I want LabVIEW to trigger a switch of some sort. Is this possible?

Thanks!

Link to comment

Absolutely!

These guys did it, but replace "switch" with "fireworks"

I don't know what exactly they did, but if I were to do it I think Id:

1) Capture sound from the mic port of your computer in small sample chunks

2) Filter all the frequencies out that I didn't care about

3) Trigger off that

Alternatively,

1) Capture sound from the mic port of your computer in small sample chunks

2) FFT

3) Trigger off specific frequencies in that

Heck, if you made a youtube account and messaged them about your project, I'll bet they'd even email you the VI they used ;)

Edit: They have a blog, see "Beat Detection Method" under their July 3rd post for links.

http://waterloolabs.blogspot.com/

Hugs,

memoryleak

Link to comment

Thanks very much for the help! I obtained the LabVIEW program from Waterloo Labs and everything works great up until the point when I try to output to the data acquisition device. The acquisition device they used in their LabVIEW program was a NI USB-6009. However, the one I have is a PCI-6251.

When I try running their program, I get an error saying that the device I'm trying to output to is incompatible and I think it is because they used a different acquisition device.

Since I am fairly new to LabVIEW, I am not sure how I can modify the program so that it outputs to the PCI-6251 device instead of trying to output to a USB-6009 acquisition device. I think I have to edit the "Write to Card.vi" but I don't know what changes I need to make.

The way I normally use the PCI-6251 device is I right-click in LabVIEW, choose Express --> Output --> DAQ Assist. However, I am having difficulties wiring that device to work with their LabVIEW program.

As memoryleak said, their program is located at http://waterloolabs.blogspot.com/. Here's the link to the LabVIEW program they used: http://decibel.ni.co...usic%20Sync.zip

Any help would be greatly appreciated! Thanks.

Edited by infinitbelt
Link to comment

I think it is absolutely we can replace PCI DAQ to USB DAQ, if the I/O usage can meet your requirement. Firstly, you may try to find what is the alias name of your 6251, then go to block diagram change the 6009's alias name to your 6251's name. you can find the alias name in MAX. Please make sure how many Analog, Digtal I/O you indeed need.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.