We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 
Beat Detection (Read 15781 times)
Re: Beat Detection
Reply #15 - Mar 19th, 2007, 8:28pm
 
You have array manipulation functions in your code, that implies you're moving the buffer around, which is heavy work for the computer.

My idea is instead of moving the array around, you should treat it like old fashioned magnetic tape. When you get to the end of the buffer you just rewind and record over the old stuff at the beginning. So long as you know where the playhead of the recorder is pointing to in the buffer you should be able to easily retrace your steps if you need to. Doing so should be faster than a deepcopy of the buffer to shift it along one space.

I'll get round to working with the fEnergy() stuff soon. I just need take things slowly (these little rants on the forum kinda put things into place in my head - my friends have to put up with this crap as well).
Re: Beat Detection
Reply #16 - Mar 19th, 2007, 8:42pm
 
Ah, ok, I understand now. I think I considered doing that at one point, though I'm not sure why I decided against it. I'll have to revisit that code at some point.
Re: Beat Detection
Reply #17 - Mar 22nd, 2007, 5:24pm
 
I'm linking this related thread on FFT averages.

After the trouble I had finding my own post on signing applets I'm not taking chances.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Sound;action=display;num=1173984274

The discussion and links there is good reading for beat detection.
Re: Beat Detection
Reply #18 - Jun 17th, 2007, 5:24pm
 
Today I posted a round-up for various aspects of signal analysis from inside Processing called: Sound Analysis in Processing to my Blog. If anyone has the feeling that I missed something essential or worth mentioning, please feel free to add further readings, resources or links to own projects/examples using the comment field.

Would be nice to collect as many useful details and informations as possible.
Re: Beat Detection
Reply #19 - Jun 26th, 2007, 2:32am
 
Hello processing forums.
I just wrote a beat detection class to use with the sonia library.
Mostly I boshed together parts of Marius Watz soniaHelper library and Dave Bollingers code for log-sized averaging bins (found in this thread).
The beat detection itself uses a decaying threshold as described by flight404.
Thanks to all of the above for sharing your knowledge.
I am fairly new to this so any thoughts about the code is greatly appreciated.

I have'nt got a website so it's on zshare
beatdetection.zip

I have rewritten parts of the code to use 1/3 octave bands and use separate settings for each beatZone. This gives more reliable detection and less pollution between for e.g hihat and snare.

beatdetectiononethirdoctavebands.zip
Re: Beat Detection
Reply #20 - Jul 4th, 2008, 8:31am
 
Excellent thread - in terms of recording in real time, my sketch runs slow in opengl so fraps is out (im using p3d). But I found on a fastish PC camstudio records fine so far, which is ideal for recording out decent 640*480 shots.

I will check out soem of the beat detection stuff on here too, I used ESS and just access the arrays and tweak them and it all seems to react nice, but it is not specifically a beat detection thing Ive done, just some way of making the visuals react nicely to changes in sound.

PS,technograph: the zshare files are gone, you got a site yet? Smiley
Re: Beat Detection
Reply #21 - Apr 4th, 2010, 10:55am
 
Im a total "tinkerer"concerning programming, and sound engineering, but this kind of posts helped a lot to get a better overview on things...

Ive been playing around with Aaron's beat_zone example, and, as Im using a Midi controller, I thought about adjusting the zones threshold with knobs in order to target the peaks I want to represent.

Id like to see Technograph's example for Sonia cause it seems Ess has a few ms delay when used in real time.

Anyone willing to post it /send it?
(do you guys mainly use Ess? CM didnt post Sonia as a library on his blog..I dont get it)

keep posting the good stuff
Pages: 1 2