Mercurial > hg > screen-ui
view melodyTriangle.h @ 3:3314e795adea
added /marker on space bar
author | Henrik Ekeus <hekeus@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Jan 2012 15:20:40 +0000 |
parents | 8c4903923021 |
children |
line wrap: on
line source
#include "ofMain.h" #include "Voice.h" #include "ofxOsc.h" class melodyTriangle : public ofBaseApp{ public: melodyTriangle(const char *host, int port, int numVoices, bool enableKeys, int voiceIdOffset); void setup(); void update(); void draw(); void keyPressed(int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void windowResized(int w, int h); int numVoices; int voiceIdOffset; bool enableKeys; float counter; bool bSmooth; //Voice *voices[NUMVOICES]; Voice *voices[10]; int x1,y1,x2,y2,x3,y3;//Triangle Coords int triangleHeight; int voiceGrabbed; void sendStatus(Voice v); bool isInTriangle(int x, int y); private: ofxOscSender sender; };