i’m writing a little demo right now and would like to visualize the accompanying music a bit. to be specific, i’d like to be able to detect the drumbeats rather accurately so that i can display some loudspeakers bumping away to the music. could someone give me a general direction what to do to achieve this? i guess i ought to use the getSpectrum() function but with what parameters etc.?
I have written my own personal player for most media sound types powered by fmod. I am using global focus so sound traverses to all windows and whatnot. This works great.
However, I use a program called Terminal Service to remotly login and controls some servers, whenever I do this while my player is runnign sound immeadatly becomes VERY VERY slow and almost sounds like the old records on a speed thats about 1/3 of what the speed should be.
Hope this helps, if u need any more information please let me know and i will endever to report all that I can.
Applogies for grammer and spelling errors.
Thanks and keep up the great work.
I hadn’t thought of the 1/x method myself yet.
Anyway, I have a slightly different approach that quite accurately detects the BPM in techno/house.
It just stores when the 5 lowest frequencies from the getspectrum go beyond .9 in an array.
Then I go through each frequency’s array and I count how many beats are in the same range.
I do the same for each frequency and after that I have a table with all BPM’s found in the array and the number of beats in a row had that BPM.
The most beats in a row with the same BPM in the range of 50 – 200 BPM wins.
- Adion answered 15 years ago
BRET!!! PLEASE DO SO!!!
I have been looking for a system that can detect beats, but have not found any documentation on have to do it programable. I have made a beatdetector in Electronics but it is quite difference in C++ programmin! 😉
Could you please let me know when it is ready?!
- Anonymous answered 15 years ago
Please login first to submit.