pyliblo 0.10 API Documentation

Homepage: http://das.nasophon.de/pyliblo/

The latest version of this manual can be found at http://dsacre.github.io/pyliblo/doc/.

For the most part, pyliblo is just a thin wrapper around liblo, which does all the real work. For questions not answered here, also see the liblo documentation and the OSC spec.

Module-level Functions

OSC Server Classes


Utility Classes



Mapping between OSC and Python data types

When constructing a message, pyliblo automatically converts arguments to an appropriate OSC data type. To explicitly specify the OSC data type to be transmitted, pass a (typetag, data) tuple instead. Some types can’t be unambiguously recognized, so they can only be sent that way.

The mapping between OSC and Python data types is shown in the following table:

typetag OSC data type Python data type
'i' int32 int
'h' int64 long (Python 2.x), int (Python 3.x)
'f' float float
'd' double float
'c' char str (single character)
's' string str
'S' symbol str
'm' midi tuple of four ints
't' timetag float
'T' true  
'F' false  
'N' nil  
'I' infinitum  
'b' blob list of ints (Python 2.x), bytes (Python 3.x)