def main(): init() oscid = listen(port=10001) bind(oscid, update_mouse, '/update') while True: readQueue(oscid)
def run(self): def handleOSCMsg(msg, source, s=self): """deals with "print" tagged OSC addresses """ # print "source:", source # print "the oscaddress is ", msg[0] # print "the value is ", msg[2] s.handleOSCMessage(source, msg) oscAPI.bind(handleOSCMsg, "/messageBoardGateway") oscAPI.getOSC(self.oscInSocket)