-
-
16 May 2005 23:22:02 UTC
- Distribution: Net-OpenSoundControl
- Module version: 0.02
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (488 / 10 / 0)
- Kwalitee
Bus factor: 0- 70.21% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (8KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::OpenSoundControl::Client - OpenSound Control client implementation
SYNOPSIS
use Net::OpenSoundControl::Client; my $client = Net::OpenSoundControl::Client->new( Host => "192.168.3.240", Port => 7777) or die "Could not start client: $@\n"; # This is a very slow fade-in... for (0..100) { $client->send(['/Main/Volume', 'f', $_ / 100]); sleep(1); }
DESCRIPTION
This module implements an OSC client sending messages via UDP.
METHODS
- new(Host => Host, Port => $port, Name => $name)
-
Creates a new client object. The default host is localhost, the default port 7123 and the default name
Net-OpenSoundControl-Client talking to localhost:7123
.Returns undef on failure (in this case, $@ is set).
- name()
-
Returns the name of the client
- host()
-
Returns the server host we are talking to
- port()
-
Returns the server port we are talking to
- send($data)
-
Sends an OSC message or bundle to the server
SEE ALSO
The OpenSound Control website: http://www.cnmat.berkeley.edu/OpenSoundControl/
AUTHOR
Christian Renz, <crenz @ web42.com>
COPYRIGHT AND LICENSE
Copyright 2004-2005 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.
Module Install Instructions
To install Net::OpenSoundControl, copy and paste the appropriate command in to your terminal.
cpanm Net::OpenSoundControl
perl -MCPAN -e shell install Net::OpenSoundControl
For more information on module installation, please visit the detailed CPAN module installation guide.