diff src/testApp.h @ 0:b299a65a3ad0

start project
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 16 Aug 2011 11:29:59 +0100
parents
children 5581023e0de4
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/testApp.h	Tue Aug 16 11:29:59 2011 +0100
@@ -0,0 +1,77 @@
+#ifndef _TEST_APP
+#define _TEST_APP
+
+
+//midieventholder - newMidiEvents() sent there
+//create cannamMidiLoader for cannamMainfunction
+
+
+//check new prior offset function - how is used?
+
+
+
+//check the widening function - adding decay noise
+//ticksperscreen could be better as millis per screen
+
+
+
+
+
+#include "ofMain.h"
+
+#include "MIDIFileReader.h"
+#include "ofxFileDialogOSX.h"
+#include "drawMidiNotes.h"
+#include "DynamicBayesianArray.h"
+
+#include <iostream>
+#include "midiEventHolder.h"
+
+#include "ofxOsc.h"
+#define PORT 12121
+
+using namespace std;
+using namespace MIDIConstants;
+
+class testApp : public ofBaseApp{
+
+	public:
+		void setup();
+		void update();
+		void draw();
+
+		void keyPressed  (int key);
+		void keyReleased(int key);
+		void mouseMoved(int x, int y );
+		void mouseDragged(int x, int y, int button);
+		void mousePressed(int x, int y, int button);
+		void mouseReleased(int x, int y, int button);
+		void windowResized(int w, int h);
+
+	void startPlaying();
+	void stopPlaying();
+	bool getFilenameFromDialogBox(string* fileNameToSave);
+
+	typedef std::vector<int> IntVector;
+	typedef std::vector<double> DoubleVector;
+//	typedef std::vector<IntVector> IntMatrix;	
+	IntVector v;
+
+	midiEventHolder midiEvents;
+	
+	int cannamMainFunction();
+	string midiFileName;
+
+	bool playing;
+	//drawMidiNotes drawer;
+	
+//	BayesianArrayStructure bayesStruct;
+	
+	int screenWidth, screenHeight;
+	
+private:
+	ofxOscReceiver	receiver;
+	
+};
+
+#endif