Skip to content

Jxke/oscP5TD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

oscP5TD

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. mousePressed events) from Processing to TouchDesigner.

Ideal for interactive installations, real-time control, and audiovisual experimentation.


πŸ“ Files

  • 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.

πŸ”Œ OSC Communication Overview

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

πŸ› οΈ Setup Instructions

πŸŒ€ TouchDesigner

  1. Open oscTDP5sendReceive.toe.
  2. In OSC Out CHOP, set:
    • IP: 127.0.0.1
    • Port: 12000
  3. In OSC In DAT, set:
    • Port: 10000
  4. Run the network to start sending and receiving messages.

🎨 Processing

  1. Open oscP5TDsendReceive.pde in Processing.
  2. Install the oscP5 library:
    • Go to Sketch > Import Library > Manage Libraries...
    • Search for oscP5 by Andreas Schlegel
    • Click Install
  3. Run the sketch.
    • It listens on port 12000 for messages from TD for the Slider Float value.
    • It sends 1/2 /mouseClick channels with messages of the X/Y coordinates to TD on port 10000.

πŸ“¦ Requirements


🧠 Credits

Created by Jake Tan
Built with oscP5 by Andreas Schlegel and TouchDesigner by Derivative.


About

A simple two-way OSC communication demo between TouchDesigner and Processing using the oscP5 library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors