annotate ofxPreciseOnsetDetectorOffline/testApp.h @ 2:7ec1ed0b2eb0
Added offline precise onset detection, outputting precise locations in seconds to text file
author |
Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
date |
Mon, 30 Dec 2013 14:08:42 +0000 |
parents |
|
children |
50f62c48b421 |
rev |
line source |
andrew@2
|
1 #pragma once
|
andrew@2
|
2
|
andrew@2
|
3 #include "ofMain.h"
|
andrew@2
|
4
|
andrew@2
|
5 #include "PreciseOnsetDetectorOffline.h"
|
andrew@2
|
6 #include "PreciseOnsetVisualiser.h"
|
andrew@2
|
7
|
andrew@2
|
8 #include "ofxWindowRegion.h"
|
andrew@2
|
9 #include "ofxPlotFunction.h"
|
andrew@2
|
10
|
andrew@2
|
11 class testApp : public ofBaseApp{
|
andrew@2
|
12 public:
|
andrew@2
|
13 void setup();
|
andrew@2
|
14 void update();
|
andrew@2
|
15 void draw();
|
andrew@2
|
16
|
andrew@2
|
17 void keyPressed(int key);
|
andrew@2
|
18 void keyReleased(int key);
|
andrew@2
|
19 void mouseMoved(int x, int y);
|
andrew@2
|
20 void mouseDragged(int x, int y, int button);
|
andrew@2
|
21 void mousePressed(int x, int y, int button);
|
andrew@2
|
22 void mouseReleased(int x, int y, int button);
|
andrew@2
|
23 void windowResized(int w, int h);
|
andrew@2
|
24 void dragEvent(ofDragInfo dragInfo);
|
andrew@2
|
25 void gotMessage(ofMessage msg);
|
andrew@2
|
26
|
andrew@2
|
27 void loadNewFile(std::string filename);
|
andrew@2
|
28 bool getFilenameFromDialogBox(string* fileNameToSave);
|
andrew@2
|
29
|
andrew@2
|
30
|
andrew@2
|
31 //vars
|
andrew@2
|
32 PreciseOnsetDetectorOffline preciseOnsetDetect;
|
andrew@2
|
33 // ofxWindowRegion window;
|
andrew@2
|
34 // ofxPlotFunction plotter;
|
andrew@2
|
35 // double windowStart, windowEnd, windowPress;
|
andrew@2
|
36
|
andrew@2
|
37 PreciseOnsetVisualiser pov;
|
andrew@2
|
38 };
|