view src/Voice.h @ 13:9e31c0507e65

Added amplitude control (keys '*' and '/').
author samer
date Mon, 30 Jan 2012 13:29:53 +0000
parents d879a30556f8
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;
};