Mercurial > hg > screen-ui
view src/Voice.h @ 29:10afc9afb79d
Changed default font to LucidaGrande.ttc as HelveticaLight not present on Lion;
fixed Makefile.
author | samer |
---|---|
date | Sun, 05 Feb 2012 19:05:30 +0000 |
parents | f4ebb87adec1 |
children | 06a2fdb333ca |
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" #define RADIUS 12 class Voice { public: Voice(int id); enum status { clear, pending, waiting, moved }; 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; double amplitude; enum status status; float truex, truey; };