Hello, i have found this code:
import ddf.minim.*;
AudioInput in;
import oscP5.;
import netP5.;
OscP5 oscP5;
NetAddress myRemoteLocation;
void setup()
{
size(10, 50);
frameRate(30);
oscP5 = new OscP5(this,12000);
myRemoteLocation = new NetAddress(“127.0.0.1”,7110);
Minim.start(this);
in = Minim.getLineIn(Minim.STEREO, 512);
}
float t = 0;
void draw()
{
background(0);
float level = constrain(in.left.level(), 0, 1);
rect(0, 0, width, heightlevel);
sendBoneMsg(“level”, level);
sendBoneMsg(“level_inverz”, 1-level);
sendBoneMsg(“level_random”, random(level));
t+=level;
sendBoneMsg(“level_pulse”, 0.5 + sin(t0.1)/2.);
}
void sendBoneMsg(String name, float n) {
OscMessage myMessage = new OscMessage("/anibone");
myMessage.add(name);
myMessage.add(n);
oscP5.send(myMessage, myRemoteLocation);
}
its for processing and sends OSC data to another software named Animata, somebody could explain me how make a VVVV patch what produce the same messages?
and… i need to know too, if is possible send the position of and object, for example a color tracker object position through OSC?, you know an object in constant movement.
Thanks in advance.