comparison NNLSBase.cpp @ 120:7a8956e903e1 monophonicness

minor changes for fewer warnings
author matthiasm
date Fri, 15 Apr 2011 10:01:53 +0000
parents 526250b06fe0
children 21181297da99
comparison
equal deleted inserted replaced
119:c4d1208e5ea9 120:7a8956e903e1
402 m_kernelValue.clear(); 402 m_kernelValue.clear();
403 m_kernelFftIndex.clear(); 403 m_kernelFftIndex.clear();
404 m_kernelNoteIndex.clear(); 404 m_kernelNoteIndex.clear();
405 int countNonzero = 0; 405 int countNonzero = 0;
406 for (int iNote = 0; iNote < nNote; ++iNote) { // I don't know if this is wise: manually making a sparse matrix 406 for (int iNote = 0; iNote < nNote; ++iNote) { // I don't know if this is wise: manually making a sparse matrix
407 for (int iFFT = 0; iFFT < blockSize/2; ++iFFT) { 407 for (size_t iFFT = 0; iFFT < blockSize/2; ++iFFT) {
408 if (tempkernel[iFFT + blockSize/2 * iNote] > 0) { 408 if (tempkernel[iFFT + blockSize/2 * iNote] > 0) {
409 m_kernelValue.push_back(tempkernel[iFFT + blockSize/2 * iNote]); 409 m_kernelValue.push_back(tempkernel[iFFT + blockSize/2 * iNote]);
410 if (tempkernel[iFFT + blockSize/2 * iNote] > 0) { 410 if (tempkernel[iFFT + blockSize/2 * iNote] > 0) {
411 countNonzero++; 411 countNonzero++;
412 } 412 }