view src/Voice.h @ 22:4dcc4312b5fa

Bit of a tidy up, adding text display, added full screen toggle and window resize handler.
author samer
date Thu, 02 Feb 2012 18:17:24 +0000
parents 9a414ea6880d
children 460c05dd74d0
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);
	
	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; }
	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;
};