Mercurial > hg > nnls-chroma
diff NNLSChroma.cpp @ 38:3c261b864e49 matthiasm-plugin
* Fix empty spectrograms
author | Chris Cannam |
---|---|
date | Fri, 22 Oct 2010 11:37:35 +0100 |
parents | cf8898a0174c |
children | d6bb9b43ac1c |
line wrap: on
line diff
--- a/NNLSChroma.cpp Fri Oct 22 11:32:47 2010 +0100 +++ b/NNLSChroma.cpp Fri Oct 22 11:37:35 2010 +0100 @@ -306,7 +306,7 @@ vector<float> oldbasschroma = vector<float>(12,0); count = 0; - for (FeatureList::iterator it = fsOut[2].begin(); it != fsOut[2].end(); ++it) { + for (FeatureList::iterator it = fsOut[m_outputTunedSpec].begin(); it != fsOut[m_outputTunedSpec].end(); ++it) { Feature f2 = *it; // logfreq spectrum Feature f3; // semitone spectrum Feature f4; // treble chromagram