Net::LibLO::Message
use Net::LibLO::Message; my $msg = new Net::LibLO::Message( ); $msg->add_string( "Hello World!" ); $msg->add_int32( 41287 );
Net::LibLO::Message is a perl class which represents a single OSC message.
Create a new, empty message.
types The types of the data items in the message.
types
... The data values to be transmitted. The types of the arguments passed here must agree with the types specified in the type parameter.
...
Adds a 32-bit integer to the message.
Adds a 32-bit floating point number to the message.
Adds a string to the message
Adds a 64 bit floating point number to the message.
Adds a symbol string to the message. Used in systems which distinguish strings and symbols.
Adds a single 8-bit character to the message.
Adds a symbol representing the value True to the message.
Adds a symbol representing the value False to the message.
Adds a symbol representing the value Nil to the message.
Adds a symbol representing the value Infinitum to the message.
Returns the length of the message in bytes - the path the message is going to be sent to is also required.
Prints the message to STDOUT - probably most useful for debugging.
Nicholas J. Humfrey, njh@aelius.com
Copyright (C) 2005 Nicholas J. Humfrey
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 General Public License for more details.
To install Net::LibLO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LibLO
CPAN shell
perl -MCPAN -e shell install Net::LibLO
For more information on module installation, please visit the detailed CPAN module installation guide.