Creating an OSC sender with openFrameworks
Let's create a new project OscOF
, one that contains a GUI panel with one slider, and send the slider's value via OSC to the VideoSynth
project.
Note
Here, we assume that the OSC sender and receiver run on the same computer. See the details on running the sender on a separate computer in the upcoming Sending OSC messages between two separate computers section.
Now perform the following steps:
Create a new project using Project Generator. Namely, start Project Generator, set the project's name to
OscOF
(that means OSC with openFrameworks), and include theofxGui
andofxOsc
addons to the newly created project (see the details on using Project Generator in Chapter 2, Creating Your First openFrameworks Project). TheofxGui
addon is needed to create the GUI slider, and theofxOsc
addon is needed to send OSC messages.Open this project in your IDE.
Include both addons' headers to the
ofApp.h
file by inserting the following lines (after the#include "ofMain.h...