|
Audio::OSC - OpenSound Control client and server implementation |
Audio::OSC - OpenSound Control client and server implementation
use Audio::OSC;
# see below
OpenSound Control ("OSC") is a protocol for communication among computers,
sound synthesizers, and other multimedia devices that is optimized for
modern networking technology.
L<http://www.cnmat.berkeley.edu/OpenSoundControl/>
This suite of modules provides an implementation of the protocol in Perl, according to version 1.0 (March 26, 2002) of the specification.
To actually create an OSC client or server, take a look at the Audio::OSC::Client manpage and the Audio::OSC::Server manpage. This module only provides several helper functions. Normally, there shouldn't be a need for you to use this module directly.
This is an alpha-quality release. Data structures and interfaces are subject to change.
OSC data is represented in a form closely related to the original binary format.
A message is an array reference containing an OSC address followed by zero or more pairs of type identifiers and data. Examples:
['/Fader', f, 0.2]
['/Synth/XY', i, 10, i, 200]
A bundle is an array reference that contains the bundle identifier #bundle and a timestamp, followed by zero or more messages. Examples:
['#bundle', 0.1, ['/Pitch', 'f', rand(1)]
['#bundle', 0.1, ['/Slider', 'f', $s],
['/Synth/XY', 'i', $x, 'i', $y]
protocol()OSC/1.0.
types()bfis (blobs, floats, ints and strings).
decode($data)encode($data)toInt($n)toFloat($n)toString($str)toBlob($d)
Doesn't work with Unicode data. Remember to use bytes if you use
Unicode Strings.
Time tags are currently not encoded.
The OpenSoundControl website at http://www.cnmat.berkeley.edu/OpenSoundControl/
the Audio::OSC::Client manpage
the Audio::OSC::Server manpage
Christian Renz, <crenz@web42.com>
Copyright 2004 by Christian Renz <crenz@web42.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Audio::OSC - OpenSound Control client and server implementation |