OscIn

OscIn objects receive incoming OSC messages from OSC devices (e.g., an OSC-enabled smartphone, or tablet).

To use it, you need following in your program:

Use the following function to create a OscIn object:

Function Description
OscIn( port ) Creates a new OscIn object to receive incoming messages from an OSC device (such as a smartphone, or tablet) at the given port.  The port number is an integer from 1024 to 65535 that is not being used by another program.

 

Once an OscIn object (e.g., oscIn) has been created, the following functions are available:

Function Description
oscIn.onInput( address, function ) When an OSC message with the given address arrives, call function.  OSC addresses look like a URL, e.g., “/first/second/third”.  The function should expect one parameter, the incoming OSC message.
oscIn.showMessages() Prints out incoming OSC messages. This is the default. Used to explore what OSC messages are generated by a device, so that they can be associated with callback functions.
oscIn.hideMessages() Stops printing out incoming OSC messages.