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 & HelpSyntax Questions › minim library problem ( i think)
Page Index Toggle Pages: 1
minim library problem ( i think) (Read 407 times)
minim library problem ( i think)
Sep 2nd, 2009, 6:07am
 
hey! i went to use an old sketch that i did, real simple one using the minim library and now it doesn't work

Code:
import ddf.minim.*;

Minim minim;
AudioInput in;

void setup()
{
size(800, 600, P2D);

minim = new Minim(this);
minim.debugOn();

// get a line in from Minim, default bit depth is 16
in = minim.getLineIn(Minim.STEREO, 512);
}


void draw(){
for(int i = 0; i < in.bufferSize() - 1; i++)
{
float r = random(255);
float g = random(255);
float b = random(255);
//strokeWeight(random(5));
stroke(0,0,0,50);

line(i, 100 + in.left.get(i)*800, i+1, 100 + in.left.get(i+1)*600);
}
}


this is the code! it's having a problem on the "   minim = new Minim(this);"  saying the constructor of Minim(name of my file) is undefined...

what could this be?? i have messed arround with the libraries folder becaus i had trouble instaling new ones, could this be the reason?
Page Index Toggle Pages: 1