Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import oscP5.*;
- import netP5.*;
- OscP5 oscP5;
- NetAddress Remote;
- int portOutgoing = 12000;
- void setup()
- {
- oscP5 = new OscP5(this,12000);
- }
- void draw() {
- background(0);
- }
- /* incoming osc message are forwarded to the oscEvent method. */
- void oscEvent(OscMessage theOscMessage) {
- /* print the address pattern and the typetag of the received OscMessage */
- print("### received an osc message.");
- print(" addrpattern: "+theOscMessage.addrPattern());
- println(" typetag: "+theOscMessage.typetag());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement