Advertisement
dams2007

Touch OSC + Processing

Jan 17th, 2022
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. import oscP5.*;
  2. import netP5.*;
  3.  
  4. OscP5 oscP5;
  5. NetAddress Remote;
  6. int portOutgoing = 12000;
  7.  
  8. void setup()
  9. {
  10.     oscP5 = new OscP5(this,12000);
  11.    
  12. }
  13.  
  14. void draw() {
  15.   background(0);  
  16. }
  17.  
  18. /* incoming osc message are forwarded to the oscEvent method. */
  19. void oscEvent(OscMessage theOscMessage) {
  20.   /* print the address pattern and the typetag of the received OscMessage */
  21.   print("### received an osc message.");
  22.   print(" addrpattern: "+theOscMessage.addrPattern());
  23.   println(" typetag: "+theOscMessage.typetag());
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement