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.

kivy.lib.osc.oscAPI.appendToBundle(bundle, oscAddress, dataArray)[ソース]

create OSC message and append it to a given bundle

kivy.lib.osc.oscAPI.bind(oscid, func, oscaddress)[ソース]

bind given oscaddresses with given functions in address manager

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

create and return general type binary OSC msg

kivy.lib.osc.oscAPI.createBundle()[ソース]

create bundled type of OSC messages

kivy.lib.osc.oscAPI.dontListen(thread_id=None)[ソース]

closes the socket and kills the thread

kivy.lib.osc.oscAPI.init()[ソース]

instantiates address manager and outsocket as globals

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

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)[ソース]

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)[ソース]

convert bundle to a binary and send it

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

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