comparison bayesianArraySrc/midiEventHolder.cpp @ 4:45b5cf9be377

checking through Bayesian update procedure - working without cross update method.
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Thu, 02 Feb 2012 12:13:44 +0000
parents c4f9e49226eb
children
comparison
equal deleted inserted replaced
3:5e188c0035b6 4:45b5cf9be377
189 189
190 void midiEventHolder::newNoteOnEvent(int pitch, int velocity, double timePlayed){ 190 void midiEventHolder::newNoteOnEvent(int pitch, int velocity, double timePlayed){
191 // tempoSpeedString = ""; 191 // tempoSpeedString = "";
192 192
193 //MOVE INTO BAYESSTRUCT?? XXX 193 //MOVE INTO BAYESSTRUCT?? XXX
194 //bayesStruct.copyPriorToPosterior(); 194
195 //why was this here?? 195 //why was this here??
196 bayesStruct.prior.copyFromDynamicVector(bayesStruct.posterior);//try the otehr way 196 bayesStruct.prior.copyFromDynamicVector(bayesStruct.posterior);//try the otehr way
197 //bayesStruct.copyPriorToPosterior(); 197
198 //need to get new MAP position and set the offset of the arrays 198 //need to get new MAP position and set the offset of the arrays
199 //currently bestEstimate is the approx for the new MAP position 199 //currently bestEstimate is the approx for the new MAP position
200 200
201 lastPlayedPitch = pitch; 201 lastPlayedPitch = pitch;
202 //add the new event to our played information matrix 202 //add the new event to our played information matrix