Media and inputs

OSC

Drive the inputs of a shader from TouchOSC, Max, Ableton or any application that sends OSC.

OSC (Open Sound Control) is how many applications talk to each other over the network: a tablet with TouchOSC, Max, Ableton with Connection Kit, a lighting desk, another computer. ISF Studio listens to what they send, and an input of a shader follows an address such as /mixer/1/fader. You do not type the address: you move the control, and Studio learns it.

In short

  1. Open the OSC view of the Resources activity. It tells where to send: the address of your computer and the port (192.168.0.12:9000).
  2. In your controller, send OSC (UDP) to that address and that port.
  3. Right-click an input of the input controls and choose OSC · Learn…. The server turns itself on if it was off.
  4. Move a control in your application. The input follows its address.

To free the input, right-click it and choose Unbind.

The server

The OSC view is the server, as the MIDI view is the devices:

  • It is off until you turn it on (Turn on, or OSC · Learn…). The choice is kept between launches.
  • It listens on port 9000 by default. Change the port in the view (from 1024 to 65535); it applies at once.
  • It lists the senders (the address and the port their messages come from) and the addresses that came, with the last value of each: you can see a control answer, and read its address.
  • A port that another application holds is told in red, and OSC · Learn… is greyed out, with the reason. Choose another port.
The first time, the system may ask whether to allow incoming connections: allow it, or nothing reaches ISF Studio. On Windows the firewall asks the same, for private networks.

What a message does to an input

InputA message does
floatA number, brought to MIN and MAX.
longA number, the option at that place of the range.
boolOn while a flag is true, or from the half of the range.
eventFires once when a flag comes on, or with a message that carries nothing.
point2DFollows one address that sends two numbers (an XY pad), or each piece, X and Y, follows its own address.
colorEach piece (R, G, B, A) follows its own address.

Studio reads numbers (i, f, h, d), flags (T, F, I) and messages sent in bundles. A message that has several numbers (/multi 0.1 0.5 0.9) gives the input the number that moved when you learned it.

A button for each item of a list

A long can also be bound item by item: each item has a button, an address that gives the list that item when a message comes (a message that carries nothing, a flag that is true, or a number from the half of the range). It works beside the address of the whole list. Right-click the list, Buttons for the items, choose the item and OSC · Learn…, then send the message. See A button for each item of a list.

The buttons of the presets

A preset can be recalled by an address too: in Manage presets…, OSC on the line of the preset waits for a message, and from then on that message brings the inputs back to it. See Bind a preset.

The range of the numbers

A controller sends numbers between 0 and 1 by default, and that is what Studio expects. One that sends 0 to 127, or any other range, is told in the dialog: View > Input Interactions… (Shift+Cmd+K), and the two numbers at the right of the binding say the least and the most the sender gives. A number beyond the range is held at its end.

Several controls, one input

An input follows one source at a time: the mouse, a MIDI control or an OSC address. Binding it to another takes it from the first. A point2D follows an address as a whole, or its pieces, not both.

The pieces of a point or a colour are bound from the right-click menu of the input: each has a submenu, with OSC · Learn….

Where the bindings are kept

As the MIDI ones: in the hidden .isf-studio folder of your library, in the presets, and with the shader in a .istshader or an .istpipe you export. Whoever opens it finds the inputs bound to the same addresses: their controller has to send them.

Free and Pro

OSC is in Free with its own count: 4 inputs of a shader or a pipeline follow an OSC address, besides the 4 of MIDI. Pro has no limit. Past 4, OSC · Learn… says so. The bindings you have stay.

Recording a video

A render cannot replay an address that was sent once. When OSC drives an input, the export dialog proposes Record live.

When it does not work

What you seeWhy
Port 9000 is already used, in the OSC view.Another application listens there. Choose another port in the view, and give it to your controller.
The senders and addresses stay empty.Check that the controller sends to the address and port the view says, by UDP, and that both computers are on the same network. A firewall may block it: allow ISF Studio. A virtual machine that shares the network of its host (NAT) does not receive what other computers send: bridge it.
Move a control… never ends.The address must move by 0.1 or more, or be a button. Look at the OSC view: if the address does not appear there, nothing arrives.
An input does not reach its end.The sender gives another range than 0 to 1: set it in the dialog.
The bindings of another shader are not applied.They follow the shader in the preview: open it.
OSC is tried on macOS. We have not tried it with every application yet: tell us what you use, and what does not work.