We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello Fellas.
I'm not a big programmer so my presence here won't count you a long time I suppose. :) I'm still working on Processing 1.5.1 because of my hardware.
First of all I want speak about a Minim library example I would like to edit in the way to integrate it with the DepthMap3d example.
The main Idea is to seperate Sound in my computer to interpret it in forms and animation like in this video :
The thing I wanted to do first was to edit the "SetInputMixer" code from Minim 2.2.2. Just to get the sound of my integrated microphone. I've edited the code like this :
import ddf.minim.*;
// need to import this so we can use Mixer and Mixer.Info objects
import javax.sound.sampled.*;
Minim minim;
AudioInput in;
Mixer.Info[] mixerInfo;
void setup()
{
size(512, 275);
minim = new Minim(this);
// mixerInfo = AudioSystem.getMixerInfo();
in = minim.getLineIn(Minim.STEREO);
}
void draw()
{
background(0);
//gui.draw();
if ( in != null )
{
stroke(255);
// draw the waveforms
for(int i = 0; i < in.bufferSize() - 1; i++)
{
line(i, 50 + in.left.get(i)*50, i+1, 50 + in.left.get(i+1)*50);
line(i, 150 + in.right.get(i)*50, i+1, 150 + in.right.get(i+1)*50);
}
}
}
BUT I got no signal now.
In the original code, there is an index set with ControlP5 to choose the sound entry and I want to get ride of that to interact directly from my integrated microphone to the DephMap3d example.
I stop here for the moment. If someone can help me it could be really useful. Bye. Thanks.