summaryrefslogtreecommitdiff
path: root/04_playobjects/src/testApp.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-06-18 00:18:18 +0100
committerComment <tim@gray.(none)>2013-06-18 00:18:18 +0100
commit020abd861215e391c6664c1f63d4dc0cf2fab833 (patch)
tree64a3623c9125f7f71c0992871cbcb484467d9f75 /04_playobjects/src/testApp.h
parent64a6e2cefebfe5f6d767f709ad8ca60362f47c0f (diff)
osc control
Diffstat (limited to '04_playobjects/src/testApp.h')
-rw-r--r--04_playobjects/src/testApp.h15
1 files changed, 14 insertions, 1 deletions
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;i<players.size();i++) {
+ ofTranslate(0, i * 400);
+ players[i]->drawDepth(50, 0,520,390);
+ players[i]->drawImage(600, 0,520,390);
+ }
+ }
+ void drawCloud(){
for (int i=0;i<players.size();i++) {
ofTranslate(0, i * 400);
players[i]->drawDepth(50, 0,520,390);
@@ -117,6 +128,8 @@ public:
ofSoundPlayer soundplayer;
+ ofxOscReceiver receiver;
+
int offset;
};