From 020abd861215e391c6664c1f63d4dc0cf2fab833 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 18 Jun 2013 00:18:18 +0100 Subject: osc control --- 04_playobjects/src/testApp.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '04_playobjects/src/testApp.h') diff --git a/04_playobjects/src/testApp.h b/04_playobjects/src/testApp.h index 5bbb0c2..223bc9d 100644 --- a/04_playobjects/src/testApp.h +++ b/04_playobjects/src/testApp.h @@ -5,6 +5,10 @@ #include "ofMain.h" #include "ofxXmlSettings.h" +#include "ofxOsc.h" + +#define OSCPORT 12345 + #define MAX_DEVICES 2 struct record{ @@ -56,7 +60,14 @@ class syncOniPlayer{ players[i]->setPaused(true); } } - void draw(){ + void drawWindows(){ + for (int i=0;idrawDepth(50, 0,520,390); + players[i]->drawImage(600, 0,520,390); + } + } + void drawCloud(){ for (int i=0;idrawDepth(50, 0,520,390); @@ -117,6 +128,8 @@ public: ofSoundPlayer soundplayer; + ofxOscReceiver receiver; + int offset; }; -- cgit v1.2.3