Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/testApp.h @ 46:ba36a1721538
Added abs median calculation, match forwards and backwards paths
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 May 2012 23:16:00 +0100 |
parents | d23685b9e766 |
children | 689704aa55d5 |
line wrap: on
line source
#pragma once #include "ofMain.h" #include "BeatAnnotationReader.h" #include "PlotTools.h" #include "MatchMultitrackAnnotationReader.h" #include "Histogram.h" #define NUMBER_OF_SCREENS 4 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 dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); typedef vector<double> DoubleVector; typedef vector<DoubleVector> DoubleMatrix; DoubleMatrix GroundTruth; BeatAnnotationReader beatReader; void drawAlignmentVectors(); PlotTools plotter; double xPlotMin, xPlotMax, yPlotMin, yPlotMax; void getYvalues(); void printPlotValues(); std::string matchPath; MatchMultitrackAnnotationReader matchBackwardsNotations; MatchMultitrackAnnotationReader matchForwardNotations; Histogram multiHistogram; Histogram matchBackwardsHistogram; Histogram matchForwardHistogram; int screenToDraw; int histogramWidth, histogramBinNumber; };