Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
gigi91
gigi91's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
mino audio
[1 Reply]
30-Jan-2012 12:43 PM
Forum:
Core Library Questions
hello.
I'm trying to
move
an object
around the
stage with
the sound that is
captured by the
system.
but
he
can
only
go to
one
side.
how can I do
?
I've been
working on this
code
...
import ddf.minim.*;
Minim minim;
AudioInput in;
float x = 10;
float y = 10;
void setup()
{
size(600, 200);
minim = new Minim(this);
in = minim.getLineIn(Minim.MONO, 1024);
}
void draw(){
som1();
}
void som1(){
background(0);
float ruido = in.mix.level()*600;
x=x+in.mix.level()*100;
fill(255,255,255);
rect(x,y,20,20);
}
void stop()
{
in.close();
minim.stop();
super.stop();
}
thank you
«Prev
Next »
Moderate user : gigi91
Forum