comparison src/AudioEventMatcher.cpp @ 34:0d52ba6844b9

working on chroma inclusion in alignment
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 03 Apr 2012 13:13:38 +0100
parents 4be22a1a0e24
children 6fb77b20413c
comparison
equal deleted inserted replaced
33:ca40d52d9998 34:0d52ba6844b9
405 405
406 406
407 void AudioEventMatcher::newChromaEvent(const int& channel, float* chromaIn, const double& timeIn){ 407 void AudioEventMatcher::newChromaEvent(const int& channel, float* chromaIn, const double& timeIn){
408 408
409 // could add event to the liveInput list? as in pitch event 409 // could add event to the liveInput list? as in pitch event
410 // printf("match chroma channel %i\n", channel); 410 printf("match chroma channel %i\n", channel);
411 411 for (int i = 0;i < 12;i++){
412 printf("chroma in[%i] = %f\n", i, chromaIn[i]);
413 }
414
412 matchNewChromaEvent(channel, chromaIn, timeIn);//main pitch matching fn 415 matchNewChromaEvent(channel, chromaIn, timeIn);//main pitch matching fn
413 416
414 likelihoodVisualisation[channel] = bayesianStruct.likelihood; 417 likelihoodVisualisation[channel] = bayesianStruct.likelihood;
415 418
416 419