comparison src/Voice.h @ 18:9a414ea6880d

Added colour coding of voice status.
author samer
date Tue, 31 Jan 2012 15:49:40 +0000
parents 9e31c0507e65
children 4dcc4312b5fa
comparison
equal deleted inserted replaced
17:21eb7b7a5dc0 18:9a414ea6880d
10 class Voice { 10 class Voice {
11 public: 11 public:
12 Voice(int id, int x, int y); 12 Voice(int id, int x, int y);
13 Voice() {}; 13 Voice() {};
14 14
15 enum status {
16 clear,
17 pending,
18 waiting,
19 moved
20 };
21
15 bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=radius); }; 22 bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=radius); };
16 double louder(); 23 double louder();
17 double quieter(); 24 double quieter();
18 void draw(); 25 void draw();
19 26
23 bool inTriangle; 30 bool inTriangle;
24 int radius; 31 int radius;
25 int octave; 32 int octave;
26 bool highlight; 33 bool highlight;
27 double amplitude; 34 double amplitude;
35 enum status status;
28 }; 36 };