view src/Voice.h @ 16:add71da95cb4

Reduced buffer zone a bit, minor code simplification.
author samer
date Tue, 31 Jan 2012 12:51:35 +0000
parents 9e31c0507e65
children 9a414ea6880d
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() {};
	
	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;
};