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
getLevel for line in (Read 531 times)
getLevel for line in
May 13th, 2009, 4:19pm
 
Hi.  Im trying to get the level for the line in using a combination of getLevel() in ess and getLineIn from minim.   The examples Im pulling code from work separately but when I put them together it gives me an error.  Can anyone help me out? heres the code.


import ddf.minim.*;
import krister.Ess.*;

Minim minim;
AudioInput in;
AudioChannel myChannel;
FFT myFFT;

void setup()
{
 size(512, 200, P2D);
 in = minim.getLineIn(Minim.STEREO, 512);
 Ess.start(this);
 myChannel=new AudioChannel("in");
 myFFT=new FFT();
 myChannel.play(Ess.FOREVER);

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

void draw()
{
}

void stop()
{
 in.close();
 minim.stop();
 super.stop();
}
Page Index Toggle Pages: 1