comparison src/testApp.cpp @ 22:9860abc92a30

follower has confidence measure now just using best match. Difficulty in visualising the speed likelihood fn
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 30 Nov 2011 11:48:35 +0000
parents 9e972948d654
children 032edf186a68
comparison
equal deleted inserted replaced
21:11e3119ce6b4 22:9860abc92a30
85 85
86 //-------------------------------------------------------------- 86 //--------------------------------------------------------------
87 void testApp::draw(){ 87 void testApp::draw(){
88 88
89 midiEvents.drawFile(); 89 midiEvents.drawFile();
90 90 ofSetColor(0,255,0);
91 midiEvents.bayesStruct.tmpPrior.drawVector(0, 200);
91 } 92 }
92 93
93 //-------------------------------------------------------------- 94 //--------------------------------------------------------------
94 void testApp::keyPressed(int key){ 95 void testApp::keyPressed(int key){
95 96
96 97
97 if (key == ' '){ 98 // if (key == ' '){
98 startPlaying(); 99 // startPlaying();
99 } 100 // }
100 101
101 if (key == 'c'){ 102 if (key == 'c'){
102 double timenow = ofGetElapsedTimeMillis(); 103 double timenow = ofGetElapsedTimeMillis();
103 midiEvents.exampleCrossUpdate(); 104 midiEvents.exampleCrossUpdate();
104 timenow *= -1; 105 timenow *= -1;
149 filePtr = &midiFileName; 150 filePtr = &midiFileName;
150 151
151 if (getFilenameFromDialogBox(filePtr)){ 152 if (getFilenameFromDialogBox(filePtr)){
152 printf("Midifile: Loaded name okay :\n'%s' \n", midiFileName.c_str()); 153 printf("Midifile: Loaded name okay :\n'%s' \n", midiFileName.c_str());
153 cannamMainFunction(); 154 cannamMainFunction();
154 155 }
155 } 156 }
156 157
157 } 158
159
158 } 160 }
159 161
160 //-------------------------------------------------------------- 162 //--------------------------------------------------------------
161 void testApp::keyReleased(int key){ 163 void testApp::keyReleased(int key){
162 164