An Open Sound Control (OSC) implementation for java and processing.org. sojamo.osc succeeds the oscP5 library.
If you want to install sojamo.osc manually, download (the latest) version from the releases directory. Inside the downloaded .zip file you will find install_instructions which will guide you through the installation details and tell you where to put the osc folder.
sojamo.osc can be used with a Processing sketch as well as a Java application.
import sojamo.osc.*;
OscP5 osc;
NetAddress remote;
void setup() {
size(400,400);
osc = new OscP5(this,12000);
remote = new NetAddress("127.0.0.1",12000);
}
void draw() {
}
void keyPressed() {
osc.send(remote, )
}
void oscEvent(OscMessage m) {
println(m);
}
I