-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |