Mercurial > hg > movesynth
diff of/testApp.h @ 45:763d56955d10
taken tim's code inside the of patch
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 04 Mar 2011 13:56:53 +0000 |
parents | b1c6e3d3a18b |
children | f33398343f18 |
line wrap: on
line diff
--- a/of/testApp.h Tue Mar 01 12:28:19 2011 +0000 +++ b/of/testApp.h Fri Mar 04 13:56:53 2011 +0000 @@ -8,9 +8,13 @@ #include "ofxOpenNI.h" #include "ofxOsc.h" #define NUMBER_OF_USERS 6 -#define HOST "localhost" +#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" class testApp : public ofBaseApp{ @@ -37,6 +41,8 @@ ofxImageGenerator image; //ofImage Davy; void sendStopMessageForUser(int userID); + void sendInformationToHeresy(int userID); + void sendNoteMessageToHeresy(int noteNumber, int onOrOff, int velocity, int channel); ofImage anubis; bool drawIt; @@ -47,10 +53,18 @@ double lastRecordedTime[NUMBER_OF_USERS];//x,y,and z of the head float torso[6][3];//x,y,and z of the head bool userPresent[6]; + bool notePlayingArray[NUMBER_OF_USERS][16]; + int pitchPlaying[NUMBER_OF_USERS]; + bool nowPlaying[NUMBER_OF_USERS][16]; + bool lastPlaying[NUMBER_OF_USERS][16]; + + float rightHandPosition[NUMBER_OF_USERS][3]; + float leftHandPosition[NUMBER_OF_USERS][3]; + double minMaxValues[NUMBER_OF_USERS][2]; ofTrueTypeFont franklinBook; string outputString; - ofxOscSender sender, stopSender; + ofxOscSender sender, stopSender, heresySender; }; #endif