1. --!movie
  2. --!encoding=utf-8
  3.  
  4. global $
  5.  
  6. ----------------------------------------
  7. -- RECEIVE OSC MESSAGES ON PORT 5500, PRINT THEM TO THE MESSAGE WINDOW
  8. ----------------------------------------
  9. on startMovie
  10.  
  11.   -- libs
  12.   import("lib/console").show()
  13.   import("lib/osc")
  14.    
  15.     put $.osc.startListening(5500, true, #slotReceive)
  16.            
  17. end
  18.  
  19. ----------------------------------------
  20. -- @callback
  21. ----------------------------------------
  22. on slotReceive (address, args)
  23.     put address, args
  24. end
  25.  
[raw code]