05.12.2012 Views

Isadora Manual v1.3 - TroikaTronix

Isadora Manual v1.3 - TroikaTronix

Isadora Manual v1.3 - TroikaTronix

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If you are transmitting data between two programs running on the same computer,<br />

you can use the special address localhost (which translates to an IP address of<br />

127.0.0.1) to indicate that the data will be transmitted locally. This should work<br />

even if you computer is not connected to a router or switch via a built-in Ethernet<br />

interface or via a wireless interface.<br />

If you intend to send Open Sound Control packets between two computers, the first<br />

step is to ensure that both computers have been assigned a valid TCP/IP address.<br />

On MacOS X, you can find the TCP/IP address of your computer by opening the<br />

System Preferences and clicking on Network. You will then see the active TCP/IP<br />

interfaces on your computer (e.g., built-in Ethernet, AirPort, etc.) and their IP<br />

Addresses. Any of these addresses may be used to receive data.<br />

Receiving Open Sound Control Packets<br />

Generally speaking, when sending messages from another computer, you will<br />

specify three pieces of information to define where the information will go: the<br />

target machine’s IP address (i.e. an internet address like 123.234.555.121), a UDP<br />

port number between 1 and 65535, and the OSC address (i.e. /isadora/1). You also<br />

usually need able to specify whether or not to send “type tag” information with the<br />

OSC packet – this must be turned on for <strong>Isadora</strong> to receive the packets and<br />

interpret them correctly.<br />

<strong>Isadora</strong> has 100 Open Sound Control addresses to which data may be sent. They<br />

range from /isadora/1 through /isadora/100. <strong>Isadora</strong> expects receive either floating<br />

point or integer numbers on these inputs. The type tag must be sent with the data,<br />

or the message will be ignored. The OSC Listener actor will receive values sent to<br />

these channels based on the channel setting, e.g., a value sent to /isadora/5 will be<br />

received by the OSC Listener with its channel set to 5. (For more information on<br />

the OSC Listener, see Page 339).<br />

In addition, there are four “multi” inputs – /isadora-multi/1 through /isadoramulti/4.<br />

On these four ports, you can send a message with a list of multiple floats<br />

and/or integers. Again, the type tag must be sent with these messages, or the<br />

message will be ignored. The individual values will be sent sequentially to a range<br />

of OSC inputs. For example, if a message consisting of two integers and two floats<br />

<strong>Isadora</strong> <strong>Manual</strong><br />

5 525 1.234 5.869 (type tags = iiff)<br />

were sent to /isadora-multi/1, the OSC Listener actors with their channels set to 1,<br />

2, 3 and 4 will receive 5, 525, 1.234, and 5.869 respectively. If the same message<br />

were sent to /isadora-multi/2, the values would appear on channels 100-103.<br />

The TCP/IP “Port Number” used to receive OSC messages can be set in the<br />

Preferences. (See Page 128 for more information.) When receiving values from<br />

another application, the port number specified when transmitting the data must<br />

match the one set in <strong>Isadora</strong>’s Preferences.<br />

174

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!