comparison Chordino.cpp @ 113:5bcba43e2317 monophonicness

no sound now leads to all 1 chroma for chord estimation
author Matthias Mauch <mail@matthiasmauch.net>
date Tue, 29 Mar 2011 17:53:02 +0100
parents 846b552ea3b0
children 3f104bceac99
comparison
equal deleted inserted replaced
112:846b552ea3b0 113:5bcba43e2317
499 currentChromas.values[i] /= chromanorm[2]; 499 currentChromas.values[i] /= chromanorm[2];
500 } 500 }
501 } 501 }
502 } 502 }
503 503
504 if (*max_element(origchroma.begin(), origchroma.end()) == 0) {
505 for (int i = 0; i < (int)chroma.size(); i++) {
506 chroma[i] = 1;
507 }
508 }
509
504 chromaList.push_back(currentChromas); 510 chromaList.push_back(currentChromas);
505 511
506 // local chord estimation 512 // local chord estimation
507 vector<double> currentChordSalience; 513 vector<double> currentChordSalience;
508 double tempchordvalue = 0; 514 double tempchordvalue = 0;