Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Real Time Beats Per Minute Counter

Posted on 1999-06-28
Medium Priority
Last Modified: 2013-11-18
This a multimedia question.

I wish to obtain working code or help regarding extracting the number of Beats per minute a song/track playing through my 'audio in' on my sound card is currently producing in real time.  Hope that makes sense.

I don't wish to purchase a full blown midi package or sample software that requires you to first save the sound sample, then convert to beats per minute.  All I wish to do, is to have this program display the current bpm of the track I'm currently playing displayed in a dialog or something similar in real time.  I have been looking for a utility for ages, but have come up with nothing. I also do not want to tap the space bar along to the beat of the track to get the bpm as some utilities offer.  I won't have a keyboard left after a while!

Please help guys.  Thanks
Question by:carlpaddick
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Accepted Solution

Floater earned 600 total points
ID: 1198612
Sounds like you need something that will sample/analyze the sound in real time.  Take samples, analyze the frequency breakdown, notice spikes in the bass (whatever the beats are coming in on), and take 1/(the time between them) == beats per second.  You might be able to find source for something like this from a winamp plugin;  I think they do a graphic equalizer thing that does a frequency breakdown for display.

Author Comment

ID: 1198613
You have diagnosed exactly what I want to do Floater.  Your the first person to understand the problem too!  The source from the Winamp plugin sounds really useful.  Do you know where I can get hold of it, and what it is written in.  I'm an MFC developer so would be looking for an MFC answer hopefully.  "Boo!" I hear you say, "get over to MFC guys", but I do have points on offer!  Thanks in advance Floater

Expert Comment

ID: 1198614
I assume you're a DJ trying to sync tracks... I think this is what you're looking for:
It's described as
"DJ plugin - for beatmixing MP3s (realtime)"
That do it?
(If that link doesn't work, go to, the plug-in downloads section, it's under effects)

Author Comment

ID: 1198615
Cheers Floater,

Sorry for the delay in getting back to you, but I have been trying to understand the Winamp code.  This sort of seems to do the trick with a bit of customization of course.  I will let you know how I get on.  Here are your points.

Expert Comment

ID: 1198616
You might be able to use WinAmp as-is.  I think it has an option to use the line-in as a source.  If so, that plugin will work without modification.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question