diff of/testApp.h @ 48:f33398343f18

header file and ableton max patch - recieves controller data too, filters the note in information and sends some to the mopho on channel b and the rest to ableton on midi channel a
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Fri, 04 Mar 2011 19:05:05 +0000
parents 763d56955d10
children 0eeda0223db3
line wrap: on
line diff
--- a/of/testApp.h	Fri Mar 04 19:04:14 2011 +0000
+++ b/of/testApp.h	Fri Mar 04 19:05:05 2011 +0000
@@ -8,13 +8,15 @@
 #include "ofxOpenNI.h"
 #include "ofxOsc.h"
 #define NUMBER_OF_USERS 6
-#define HOST "169.254.107.152"//"localhost"
-#define PORT 12344
+
 #define STOPPORT 12343
 #define STOPHOST "localhost"
 
 #define HERESY_PORT 12346
-#define HERESY_HOST "169.254.169.93"
+#define HERESY_HOST "169.254.51.147"//JOE's address??
+
+//#define HOST "169.254.51.147"//Was Tim's ADDRESS - not used any more - use Joe's heresy_host below 
+//#define PORT 12344
 
 class testApp : public ofBaseApp{
 
@@ -45,9 +47,16 @@
 	void sendNoteMessageToHeresy(int noteNumber, int onOrOff, int velocity, int channel);
 	
 		ofImage anubis;
+	ofImage secondUserImage, thirdUserImage;
 		bool drawIt;
 	
 	float maxTorsoValues[3];
+	float leftMaximum[3];
+	float rightMaximum[3];
+	
+	int ControlChangeData[NUMBER_OF_USERS][4];//userId, leftX, leftR, rightX, right Y
+	void sendControlChangeDataToMax(int userID);
+		
 	void checkTorsoMaxima(int id);
 	int typeOfFaceToUse[NUMBER_OF_USERS];
 	double lastRecordedTime[NUMBER_OF_USERS];//x,y,and z of the head
@@ -66,5 +75,7 @@
 	string outputString;
 	ofxOscSender sender, stopSender, heresySender;
 	
+	string userInfoString[3];
+	
 };
 #endif