openFrameworks OSC send sample
#include "ofApp.h" | |
void ofApp::setup() { | |
// OSC Setup | |
sender.setup(HOST, SEND_PORT); | |
} | |
void ofApp::mouseMoved(int x, int y) { | |
int layer = 1; | |
float opacity = ofMap(y, 0, ofGetHeight(), 1.0, 0); | |
m.setAddress("/layer"+ofToString(layer)+"/video/opacity/values"); | |
m.addFloatArg(opacity); | |
sender.sendMessage(m); | |
m.clear(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment