simple osc on python

View: New views
1 Messages — Rating Filter:   Alert me  

simple osc on python

by altern-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi

we have updated the simpleosc Python library. Just to remind you, it is
a Python library that contains a module that interfaces OSC.py by Daniel
Holtz to make using basic OSC dead simple for python students (or for
simple usage). So not for developers really, but maybe useful for
educational purposes like teaching basic OSC communication or simple
applications.

we hope it helps someone. It can be downloaded from :
http://www.ixi-software.net/content/download/simpleosc0.2.zip


Using it would look like this more or less :

############
import osc

osc.init() # creates callbackmanager and outsocket under the hood
inSocket = osc.createListener("127.0.0.1", 9001)

def printStuff(*msg):
     print "the msg is :", msg

osc.bind(printStuff, "/test")

while 1:
     osc.sendMsg("/somestuff", [444, 333], "127.0.0.1", 9000)
     osc.getOSC(inSocket) # listen to incomming OSC in this socket

     bundle = osc.createBundle()
     osc.appendToBundle(bundle, "/stuff/bndlprt1", [1, 2, 3])
     osc.appendToBundle(bundle, "/stuff/bndlprt2", [4, 5, 6])
     osc.sendBundle(bundle, "127.0.0.1", 9000)
###########

best

enrike
_______________________________________________
OSC_dev mailing list
OSC_dev@...
http://www.create.ucsb.edu/mailman/listinfo/osc_dev