andrew@2: #pragma once andrew@2: andrew@2: #include "ofMain.h" andrew@2: andrew@2: #include "PreciseOnsetDetectorOffline.h" andrew@2: #include "PreciseOnsetVisualiser.h" andrew@2: andrew@2: #include "ofxWindowRegion.h" andrew@2: #include "ofxPlotFunction.h" andrew@2: andrew@2: class testApp : public ofBaseApp{ andrew@2: public: andrew@2: void setup(); andrew@2: void update(); andrew@2: void draw(); andrew@2: andrew@2: void keyPressed(int key); andrew@2: void keyReleased(int key); andrew@2: void mouseMoved(int x, int y); andrew@2: void mouseDragged(int x, int y, int button); andrew@2: void mousePressed(int x, int y, int button); andrew@2: void mouseReleased(int x, int y, int button); andrew@2: void windowResized(int w, int h); andrew@2: void dragEvent(ofDragInfo dragInfo); andrew@2: void gotMessage(ofMessage msg); andrew@2: andrew@2: void loadNewFile(std::string filename); andrew@2: bool getFilenameFromDialogBox(string* fileNameToSave); andrew@2: andrew@2: andrew@2: //vars andrew@2: PreciseOnsetDetectorOffline preciseOnsetDetect; andrew@2: // ofxWindowRegion window; andrew@2: // ofxPlotFunction plotter; andrew@2: // double windowStart, windowEnd, windowPress; andrew@2: andrew@2: PreciseOnsetVisualiser pov; andrew@2: };