Mercurial > hg > screen-ui
view src/Voice.h @ 19:055d7524bae4
Adjusted colours, reduced buffer zone.
author | samer |
---|---|
date | Tue, 31 Jan 2012 23:44:01 +0000 |
parents | 9a414ea6880d |
children | 4dcc4312b5fa |
line wrap: on
line source
/* * Voice.h * MelodyTriangle * * Created by Henrik Ekeus on 12/01/2012. * Copyright 2012 Queen Mary University of London. All rights reserved. * */ #include "ofMain.h" class Voice { public: Voice(int id, int x, int y); Voice() {}; enum status { clear, pending, waiting, moved }; bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=radius); }; double louder(); double quieter(); void draw(); int id; int posx,posy; bool isActive; bool inTriangle; int radius; int octave; bool highlight; double amplitude; enum status status; };