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.
IndexDiscussionExhibition › Audio visualization
Page Index Toggle Pages: 1
Audio visualization (Read 4687 times)
Audio visualization
Mar 7th, 2008, 11:37am
 
Hey,

I've been programming for a few years, but I only just discovered the joys of Processing.  I have experience in countless programming languages, Java included, and I can honestly say I despised the language until I started using Processing.  It makes Java fun...that's all I can say.

http://files.avinashv.net/processing/visualization

Anyway, after tinkering around for a couple of hours, I whipped up an audio visualization.  It's essentially a beat-matcher and stereo waveform analyzer.  I can't claim credit for the ideas behind the code, but the implementation is essentially mine.

I'd love to get feedback on the code.  I didn't actively seek to optimize it, and I've notice it stutters when I feed it a large MP3.  I'm on a decent machine, so I assume it's a problem with the way the library streams files from disk.  I notice some tearing when this runs, and I can't seem to be able to find a function that forces drawing to wait for vertical sync...back in my QBasic days we called this VSync.  Again, tips would be greatly appreciated.

I'd like to develop this into a fully fledged audio visualizer, but this type of programming is out of the realm of what I normally do; are there resources on creating specific graphical effects or links to sources of other Processing sketches that do something similar to what I need?  I can't seem to find a central repository for sketches--a SourceForge for Processing, if you will.  If I am looking in the wrong places, let me know.

I'm not sure how it goes here, but I've felt safe posting my sources on other programming forums without placing licensing restrictions on them--I assume here too we follow the honor code?

Thanks
Page Index Toggle Pages: 1