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.
Page Index Toggle Pages: 1
Need help with ess (Read 489 times)
Need help with ess
Feb 7th, 2009, 5:11pm
 
Hello,
I'm new here and i need some help with the ess libary. I'm german and i don't understand the declarations of this website: http://www.tree-axis.com/Ess/

I need this for a study project. I have had a first introduction in processing by a professor but only easy things.

For this project i want to visualise a citation and explain what the visualisation say to me or to a contemplator.
I'have tried it, but i'm failing.

In an example on the Website there is something like this:

import krister.Ess.*;

FFT myfft;
AudioInput myinput;
int bufferSize=512;    

void setup() {
 size(1024,768 );
 background(255);
 noStroke();

 Ess.start(this);
 myinput=new AudioInput(bufferSize);
 myfft=new FFT(bufferSize*2);
 myinput.start();

 myfft.damp(.3);
 myfft.equalizer(true);
 myfft.limits(.005,.05);
}

Why is int bufferSize=512;?
What does it says to me? Is this the frequency or something and why is myfft=new FFT(bufferSize*2);?

And what are these variable good for?
 myfft.damp(.3);
 myfft.equalizer(true);
 myfft.limits(.005,.05);

And in which unit i get the spectrum by
myfft.spectrum? is it Hz or the sound volume?

Sorry, I know these are many questions at one time but i have to do this project until march and it is very important for me. Please help me with easy explanations:-)

Thank you.
Page Index Toggle Pages: 1