|
Author |
Topic: Beat Detection Alogrithm via Sonia&Processing (Read 2244 times) |
|
superchango
|
Beat Detection Alogrithm via Sonia&Processing
« on: Feb 18th, 2004, 5:01pm » |
|
Hi there, I am working on a audiovisual project in processing. For that i need to detect the beat of incoming sound. I know there are beat detection algorithms (for example: http://www.gamedev.net/reference/programming/features/beatdetection/ by Frederic Patin) and I tried to understand them again and again, and i probably did so far. My Question: is there anybody who transformed an algorithm like that into processing language by using SONIA to get the FFT samples Pleas help David
|
|
|
|
toxi_ Guest
|
Re: Beat Detection Alogrithm via Sonia&Processing
« Reply #1 on: Feb 18th, 2004, 7:47pm » |
|
hi, i've done a very simple cheating solution, which is only similar in princple to the above algorithm and its use of a derivation filter. i've had medium 'til very good results with it in the past and my director projects. but i've not been using any FFT data at all. my approach was to compute the average level of the current input buffer every frame and compare the value to the one of the previous frame. if the difference is over a certain threshold, i triggered a beat event and store a timestamp. to avoid the system to become over-sensitive the event is only triggered after a specified minimum amount of time since the last beat. the main problem is that the behaviour depends from all those factors which need to be carefully calibrated: - the system's audio input gain - the threshold used - the minimum time between beats some more pointers: soni(a)c air director examples hth! toxi.
|
|
|
|
superchango
|
Re: Beat Detection Alogrithm via Sonia&Processing
« Reply #2 on: Feb 20th, 2004, 8:26pm » |
|
Thanx sof far toxi. I'll try to make a program like you said and will see how it'll work for my claims... But I would really like to work freqency based with FFT data to detect a beat. If there is anybody who has experiences with that, please contact me. David @pitaru: Thanks for SONIA, great great great!
|
|
|
|
|