Mercurial > hg > screen-ui
view 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 |
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; };