comparison jnmr/testApp.cpp @ 46:43edc8abe2a7

Fixed bug in complex update due to mismatch between ms and vector units
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sun, 05 Feb 2012 19:40:21 +0000
parents 90ad1817ca56
children 803edc47e825
comparison
equal deleted inserted replaced
45:90ad1817ca56 46:43edc8abe2a7
418 if (key == '=') 418 if (key == '=')
419 transpose += 12; 419 transpose += 12;
420 420
421 if (key == 'c'){ 421 if (key == 'c'){
422 double timenow = ofGetElapsedTimeMillis(); 422 double timenow = ofGetElapsedTimeMillis();
423 midiEvents.exampleCrossUpdate(); 423 //midiEvents.exampleCrossUpdate();
424 timenow *= -1; 424 timenow *= -1;
425 timenow += ofGetElapsedTimeMillis(); 425 timenow += ofGetElapsedTimeMillis();
426 printf("CROSS UPDATE TOOK %f", timenow); 426 printf("CROSS UPDATE TOOK %f", timenow);
427 } 427 }
428 428
471 if (key == 'k'){ 471 if (key == 'k'){
472 noteInStream.printNotes(); 472 noteInStream.printNotes();
473 } 473 }
474 474
475 if (key == 'p'){ 475 if (key == 'p'){
476 midiEvents.printNotes(); 476 //midiEvents.printNotes();
477 midiEvents.bayesStruct.posterior.printArray();
477 } 478 }
478 479
479 if (key == 'l') 480 if (key == 'l')
480 midiEvents.bayesStruct.decaySpeedDistribution(100); 481 midiEvents.bayesStruct.decaySpeedDistribution(100);
481 482