Version

Quick search

Table Of Contents

simpleOSC 0.2

ixi software - July, 2006 www.ixi-software.net

simple API for the Open SoundControl for Python (by Daniel Holth, Clinton McChesney –> pyKit.tar.gz file at http://wiretap.stetson.edu) Documentation at http://wiretap.stetson.edu/docs/pyKit/

The main aim of this implementation is to provide with a simple way to deal with the OSC implementation that makes life easier to those who don’t have understanding of sockets or programming. This would not be on your screen without the help of Daniel Holth.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Thanks for the support to Buchsenhausen, Innsbruck, Austria.

class kivy.lib.osc.oscAPI.OSCServer(**kwargs)[source]

Bases: kivy.lib.osc.oscAPI._OSCServer

run()[source]

Method to be run in sub-process; can be overridden in sub-class

kivy.lib.osc.oscAPI.appendToBundle(bundle, oscAddress, dataArray)[source]

create OSC message and append it to a given bundle

kivy.lib.osc.oscAPI.bind(oscid, func, oscaddress)[source]

bind given oscaddresses with given functions in address manager

kivy.lib.osc.oscAPI.createBinaryMsg(oscAddress, dataArray, typehint=None)[source]

create and return general type binary OSC msg

kivy.lib.osc.oscAPI.createBundle()[source]

create bundled type of OSC messages

kivy.lib.osc.oscAPI.dontListen(thread_id=None)[source]

closes the socket and kills the thread

kivy.lib.osc.oscAPI.init()[source]

instantiates address manager and outsocket as globals

kivy.lib.osc.oscAPI.listen(ipAddr='127.0.0.1', port=9001)[source]

Creates a new thread listening to that port defaults to ipAddr=‘127.0.0.1’, port 9001

kivy.lib.osc.oscAPI.readQueue(thread_id=None)[source]

Read queues from all threads, and dispatch message. This must be call in the main thread.

You can pass the thread id to deque message from a specific thread. This id is returned from the listen() function

kivy.lib.osc.oscAPI.sendBundle(bundle, ipAddr='127.0.0.1', port=9000)[source]

convert bundle to a binary and send it

kivy.lib.osc.oscAPI.sendMsg(oscAddress, dataArray=[], ipAddr='127.0.0.1', port=9000, typehint=None)[source]

create and send normal OSC msgs defaults to ‘127.0.0.1’, port 9000