# HG changeset patch # User Matthias Mauch # Date 1301417582 -3600 # Node ID 5bcba43e23174e1c4aaab3a94781e884707a031d # Parent 846b552ea3b0d1f7396350d1167f4c20a51fa4aa no sound now leads to all 1 chroma for chord estimation diff -r 846b552ea3b0 -r 5bcba43e2317 Chordino.cpp --- a/Chordino.cpp Tue Mar 29 15:12:19 2011 +0100 +++ b/Chordino.cpp Tue Mar 29 17:53:02 2011 +0100 @@ -501,6 +501,12 @@ } } + if (*max_element(origchroma.begin(), origchroma.end()) == 0) { + for (int i = 0; i < (int)chroma.size(); i++) { + chroma[i] = 1; + } + } + chromaList.push_back(currentChromas); // local chord estimation