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.
IndexProgramming Questions & HelpSound,  Music Libraries › Ess library questions.
Page Index Toggle Pages: 1
Ess library questions. (Read 951 times)
Ess library questions.
Feb 25th, 2007, 7:34pm
 
Ive seen how the ESS library uses graphics to interact with sound...But im curious to know if anyone has examples of how Ellipses and other shapes can react to sound.E.g. getting ellipses to change scale and such. Help wud be much appreciated thanks
Re: Ess library questions.
Reply #1 - Feb 25th, 2007, 11:36pm
 
I've still not figured this out fully after a day or two of playing.. but I think that one easy way to make something that looks okay, is to use the FFT function in ESS, and then just sum the content of all the entries, and react based on any sudden increases/decreases in the total, as well as maybe having another reaction to the average of the lowest 25% of the FFT array.
Re: Ess library questions.
Reply #2 - Feb 26th, 2007, 3:57am
 
Even easier than that would be to use the getLevel() function of the FFT. You could tie that number to the scale of your ellipse, for instance. If you wanted to have multiple ellipses you might use an FFT with 16 averages and then use the level of each average as a scale for a different ellipse.
Re: Ess library questions.
Reply #3 - Feb 26th, 2007, 12:22pm
 
Example anyone?? it would help to grasp what you're talking about. Thanks.
Re: Ess library questions.
Reply #4 - Feb 26th, 2007, 4:34pm
 
See http://www.hardcorepawn.com/FireVis/music.pde that contains most of the code for setting stuff up

You'd want to change the musicLoop() function however, to fit your needs.

What happens is that every frame the FFT is updated fmor the music that's played, and gives you some arrays of values.

In that exampe, you could try using the myFFt.averages array to control the size of your ellipses, the bigger the number, the bigger the ellipse.
Page Index Toggle Pages: 1