Skip to content

Commit

Permalink
Add test pde file for log
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1kn1 committed Nov 10, 2016
1 parent d0f8a91 commit 29ca567
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions client/test/intercepter-test.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import oscP5.*;
import java.util.Date;

OscP5 oscP5;

void setup() {
size(500, 500);
oscP5 = new OscP5(this, 3333);//set port
}

/* incoming osc message are forwarded to the oscEvent method. */
void oscEvent(OscMessage theOscMessage) {
/* print the address pattern and the typetag of the received OscMessage */
println("### [" + new Date() + "]" + " received an osc message.");
println(" addrpattern: "+theOscMessage.addrPattern());
println(" typetag: "+theOscMessage.typetag());
println(" get(0): "+theOscMessage.get(0).intValue());
}

void draw() {
background(255);
noStroke();
fill(0, 0, 0);
}

0 comments on commit 29ca567

Please sign in to comment.