comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:b299a65a3ad0
1 #ifndef _TEST_APP
2 #define _TEST_APP
3
4
5 //midieventholder - newMidiEvents() sent there
6 //create cannamMidiLoader for cannamMainfunction
7
8
9 //check new prior offset function - how is used?
10
11
12
13 //check the widening function - adding decay noise
14 //ticksperscreen could be better as millis per screen
15
16
17
18
19
20 #include "ofMain.h"
21
22 #include "MIDIFileReader.h"
23 #include "ofxFileDialogOSX.h"
24 #include "drawMidiNotes.h"
25 #include "DynamicBayesianArray.h"
26
27 #include <iostream>
28 #include "midiEventHolder.h"
29
30 #include "ofxOsc.h"
31 #define PORT 12121
32
33 using namespace std;
34 using namespace MIDIConstants;
35
36 class testApp : public ofBaseApp{
37
38 public:
39 void setup();
40 void update();
41 void draw();
42
43 void keyPressed (int key);
44 void keyReleased(int key);
45 void mouseMoved(int x, int y );
46 void mouseDragged(int x, int y, int button);
47 void mousePressed(int x, int y, int button);
48 void mouseReleased(int x, int y, int button);
49 void windowResized(int w, int h);
50
51 void startPlaying();
52 void stopPlaying();
53 bool getFilenameFromDialogBox(string* fileNameToSave);
54
55 typedef std::vector<int> IntVector;
56 typedef std::vector<double> DoubleVector;
57 // typedef std::vector<IntVector> IntMatrix;
58 IntVector v;
59
60 midiEventHolder midiEvents;
61
62 int cannamMainFunction();
63 string midiFileName;
64
65 bool playing;
66 //drawMidiNotes drawer;
67
68 // BayesianArrayStructure bayesStruct;
69
70 int screenWidth, screenHeight;
71
72 private:
73 ofxOscReceiver receiver;
74
75 };
76
77 #endif