Mercurial > hg > midi-score-follower
annotate hackday/main.cpp @ 36:5a1b0c6fa1fb
Added class to read in the csv Annotation file, then write out the respective difference between the performed piece as followed here, and the annotation of RWC by Ewert and Muller
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 15 Dec 2011 02:28:49 +0000 |
parents | 49a5b023df1e |
children |
rev | line source |
---|---|
andrew@28 | 1 #include "ofMain.h" |
andrew@28 | 2 #include "testApp.h" |
andrew@28 | 3 #include "ofAppGlutWindow.h" |
andrew@28 | 4 #include "ofxArgs.h" |
andrew@28 | 5 |
andrew@28 | 6 //======================================================================== |
andrew@28 | 7 int main(int argc, char *argv[]){ |
andrew@28 | 8 ofxArgs* args = new ofxArgs(argc, argv); |
andrew@28 | 9 |
andrew@28 | 10 if (argc > 0){ |
andrew@28 | 11 cout << "MIDI FOLLOW (" << argc << ") arg[1] is " << argv[1] << endl; |
andrew@28 | 12 } |
andrew@28 | 13 |
andrew@28 | 14 ofAppGlutWindow window; |
andrew@28 | 15 ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context |
andrew@28 | 16 |
andrew@28 | 17 // this kicks off the running of my app |
andrew@28 | 18 // can be OF_WINDOW or OF_FULLSCREEN |
andrew@28 | 19 // pass in width and height too: |
andrew@28 | 20 |
andrew@28 | 21 ofRunApp(new testApp(args)); |
andrew@28 | 22 delete args; |
andrew@28 | 23 |
andrew@28 | 24 } |
andrew@28 | 25 |