hekeus@6: /* hekeus@6: * Voice.h hekeus@6: * MelodyTriangle hekeus@6: * hekeus@6: * Created by Henrik Ekeus on 12/01/2012. hekeus@6: * Copyright 2012 Queen Mary University of London. All rights reserved. hekeus@6: * hekeus@6: */ hekeus@6: #include "ofMain.h" hekeus@6: class Voice { hekeus@6: public: samer@13: Voice(int id, int x, int y); samer@13: Voice() {}; hekeus@6: samer@13: bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=radius); }; samer@13: double louder(); samer@13: double quieter(); samer@13: void draw(); hekeus@6: hekeus@6: int id; hekeus@6: int posx,posy; hekeus@6: bool isActive; hekeus@6: bool inTriangle; hekeus@6: int radius; hekeus@6: int octave; hekeus@6: bool highlight; samer@13: double amplitude; hekeus@6: };