view src/Voice.h @ 14:578c1acf1cc4

Octave and amplitude now initialised correctly on birth; added binary app.
author samer
date Mon, 30 Jan 2012 23:31:39 +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;
};