Network OSC Send

Send an OSC message to a remote computer connected to the network.

Settings

Usine can receive and send OSC messages from/to the network.

This allows communication between all the computers connected to the network or on Internet.

What is an OSC message?

An OSC message contains 3 parts.

  • the OSC address, is a string which represents the name of the data. Generally addresses are between /. For example /usine/freq, /filter/freq1/, /data/random/value/.
  • the tag is comma (,) followed by a set of characters which represents the type of the data's. For example ,f, ,b. As an OSC message can contain several data's at the same time the tag can be ,fff for 3 float, ,iib for 2 integers and an array.
  • the data's which are binary bytes generally totally unreadable except for *Rain Man...

For example an OSC message can look like:

addr

Osc address string of the message.

Be careful, the OSC address string is key sensitive. It mean that /USINE/ is not equal to /usine/.

type

OSC message type tag. Specifies the data type: integer, float or array of float.

Each OSC data is dispatched to its respective OSC tag order. For example if the tag is ,iiif the first i data is sent/received to the data1 field, the second i to the data2 field and so on.

Usine accepts the following tags:

  • i : integer;
  • f : float 32bits
  • b : blob (array of float 32bit)
  • c : ascii character sent as 32 bit
  • r : 32bit RGBA color
  • m : 4 byte MIDI message (channel,msg,data1,data2)
  • T : true
  • F : false
  • N : nil
  • I : infinitum

ip name

IP address of the remote computer (to send data).

Active only if the broadcast option is OFF.

broadcast

  • If this option is activated, the OSC message is sent to all the computers connected to the local network.
  • If not activated the message is sent at the address specified in the ip name field.
    broadcast or not ?

    In OSC when you want to send a data to another computer you normally have to know the network (IP) address of the destination. Something like 192.168.1.5.

    The problem is that, by default, routers are configured to allocate IP addresses dynamically. In other word their IP aren't fixed and can change if, for example, you have to reboot one of your computer or your router. When broadcast is ON data's are sent to all the computers of the network at the same time whatever their IP address. So you don't have to deal with IP addresses and you're sure that all the computers will receive the message.

    The main drawback is that if you have 20 computers connected you'll probably overload the network.

    So if we resume broadcast ON is cool for small networks, let say, less than 10 computers. For larger networks, disable this option (OFF) and use the IP address field to set the destination of the message.

port

Remote Port destination number of the message.

send

Sends the message when it recieves a 1 trigger.

data

Data values to send.

data array

Values packed as an Array. To send values with the content of an array.

See also

Edit All Pages