diff src/Voice.h @ 25:f4ebb87adec1

Added code to keep track of true position of voices in information space; Two voice drawing methods display both true position target position while dragging; string to Voice::status code no longer required; refactored OSC message sending code; added keys to control subdivision ratio for period and shift controls.
author samer
date Sun, 05 Feb 2012 18:13:30 +0000
parents 460c05dd74d0
children 06a2fdb333ca
line wrap: on
line diff
--- a/src/Voice.h	Sat Feb 04 23:15:02 2012 +0000
+++ b/src/Voice.h	Sun Feb 05 18:13:30 2012 +0000
@@ -20,26 +20,19 @@
 		moved
 	};
 
-	class bad_status : public std::exception {
-		string str;
-	public:
-		bad_status(string s): str(s) {}
-		~bad_status() throw() {}
-		const char *what() const throw();
-	};
-		
-	static status stringToStatus(string str) throw(bad_status);
 	bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=RADIUS); };
 	//void setPos(int x, int y) { posx=x; posy=y; status=pending; }
 	double louder();
 	double quieter();
 	void   draw(bool highlight);
+	void   draw_alt(bool highlight);
 	
-	int id;
-	int posx,posy;
-	bool isActive;
-	bool inTriangle;
-	int octave;
+	int    id;
+	int    posx,posy;
+	bool   isActive;
+	bool   inTriangle;
+	int    octave;
 	double amplitude;
-	enum status status;
+	enum   status status;
+	float  truex, truey;
 };