A simple two-way OSC (Open Sound Control) communication demo between TouchDesigner and Processing using the oscP5 library.
This project demonstrates:
- Sending float values (e.g. slider values) from TouchDesigner to Processing.
- Sending interaction data (e.g.
mousePressedevents) from Processing to TouchDesigner.
Ideal for interactive installations, real-time control, and audiovisual experimentation.
oscP5TDsendReceive.pdeβ Processing sketch that receives float values from TouchDesigner and sends back mouse positions.oscTDP5sendReceive.toeβ TouchDesigner project that sends slider values and receives mouse click data from Processing.
| Direction | Sender | Receiver | Port | Description |
|---|---|---|---|---|
| TD β Processing | TouchDesigner | Processing | 12000 | Sends float values (e.g. /v1) |
| Processing β TD | Processing | TouchDesigner | 10000 | Sends mouse X/Y on /mouseClick |
- Open
oscTDP5sendReceive.toe. - In
OSC Out CHOP, set:- IP:
127.0.0.1 - Port:
12000
- IP:
- In
OSC In DAT, set:- Port:
10000
- Port:
- Run the network to start sending and receiving messages.
- Open
oscP5TDsendReceive.pdein Processing. - Install the oscP5 library:
- Go to
Sketch>Import Library>Manage Libraries... - Search for oscP5 by Andreas Schlegel
- Click Install
- Go to
- Run the sketch.
- It listens on port
12000for messages from TD for the Slider Float value. - It sends 1/2
/mouseClickchannels with messages of the X/Y coordinates to TD on port10000.
- It listens on port
Created by Jake Tan
Built with oscP5 by Andreas Schlegel and TouchDesigner by Derivative.