Mercurial > hg > nnls-chroma
comparison Chordino.cpp @ 125:2518ef286816 monophonicness
tab format correction
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Sat, 11 Jun 2011 17:44:14 +0100 |
parents | 21181297da99 |
children | 28c8e52139b5 |
comparison
equal
deleted
inserted
replaced
123:b115fa66c695 | 125:2518ef286816 |
---|---|
493 currentChromas.values[i] /= chromanorm[2]; | 493 currentChromas.values[i] /= chromanorm[2]; |
494 } | 494 } |
495 } | 495 } |
496 } | 496 } |
497 | 497 |
498 if (*max_element(origchroma.begin(), origchroma.end()) == 0) { | 498 if (*max_element(origchroma.begin(), origchroma.end()) == 0) { |
499 for (int i = 0; i < (int)chroma.size(); i++) { | 499 for (int i = 0; i < (int)chroma.size(); i++) { |
500 chroma[i] = 1; | 500 chroma[i] = 1; |
501 } | 501 } |
502 } | 502 } |
503 | 503 |
504 chromaList.push_back(currentChromas); | 504 chromaList.push_back(currentChromas); |
505 | 505 |
506 // local chord estimation | 506 // local chord estimation |
507 vector<double> currentChordSalience; | 507 vector<double> currentChordSalience; |