Mercurial > hg > nnls-chroma
diff Chordino.cpp @ 122:21181297da99 monophonicness
replacing unsigned/size_t iterators by int and casting others to int
author | matthiasm |
---|---|
date | Fri, 15 Apr 2011 11:31:37 +0000 |
parents | 072327bbb1a2 |
children | a17ff20fb897 2518ef286816 |
line wrap: on
line diff
--- a/Chordino.cpp Fri Apr 15 10:21:07 2011 +0000 +++ b/Chordino.cpp Fri Apr 15 11:31:37 2011 +0000 @@ -495,11 +495,11 @@ } } -// if (*max_element(origchroma.begin(), origchroma.end()) == 0) { -// for (int i = 0; i < (int)chroma.size(); i++) { -// chroma[i] = 1; -// } -// } + if (*max_element(origchroma.begin(), origchroma.end()) == 0) { + for (int i = 0; i < (int)chroma.size(); i++) { + chroma[i] = 1; + } + } chromaList.push_back(currentChromas);