Mercurial > hg > screen-ui
annotate src/Voice.h @ 13:9e31c0507e65
Added amplitude control (keys '*' and '/').
author | samer |
---|---|
date | Mon, 30 Jan 2012 13:29:53 +0000 |
parents | d879a30556f8 |
children | 9a414ea6880d |
rev | line source |
---|---|
hekeus@6 | 1 /* |
hekeus@6 | 2 * Voice.h |
hekeus@6 | 3 * MelodyTriangle |
hekeus@6 | 4 * |
hekeus@6 | 5 * Created by Henrik Ekeus on 12/01/2012. |
hekeus@6 | 6 * Copyright 2012 Queen Mary University of London. All rights reserved. |
hekeus@6 | 7 * |
hekeus@6 | 8 */ |
hekeus@6 | 9 #include "ofMain.h" |
hekeus@6 | 10 class Voice { |
hekeus@6 | 11 public: |
samer@13 | 12 Voice(int id, int x, int y); |
samer@13 | 13 Voice() {}; |
hekeus@6 | 14 |
samer@13 | 15 bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=radius); }; |
samer@13 | 16 double louder(); |
samer@13 | 17 double quieter(); |
samer@13 | 18 void draw(); |
hekeus@6 | 19 |
hekeus@6 | 20 int id; |
hekeus@6 | 21 int posx,posy; |
hekeus@6 | 22 bool isActive; |
hekeus@6 | 23 bool inTriangle; |
hekeus@6 | 24 int radius; |
hekeus@6 | 25 int octave; |
hekeus@6 | 26 bool highlight; |
samer@13 | 27 double amplitude; |
hekeus@6 | 28 }; |