comparison SimpleCepstrum.cpp @ 39:59701cbc4b93

Remove the pitch-tracker; it's now in a separate project (cepstral-pitchtracker)
author Chris Cannam
date Thu, 19 Jul 2012 17:51:57 +0100
parents c70ebf24b419
children d6acf12f0a8e
comparison
equal deleted inserted replaced
38:c70ebf24b419 39:59701cbc4b93
440 double v = 0; 440 double v = 0;
441 int n = 0; 441 int n = 0;
442 // average according to the vertical filter length 442 // average according to the vertical filter length
443 for (int j = -m_vflen/2; j <= m_vflen/2; ++j) { 443 for (int j = -m_vflen/2; j <= m_vflen/2; ++j) {
444 int ix = i + m_binFrom + j; 444 int ix = i + m_binFrom + j;
445 if (ix >= 0 && ix < m_blockSize) { 445 if (ix >= 0 && ix < (int)m_blockSize) {
446 v += cep[ix]; 446 v += cep[ix];
447 ++n; 447 ++n;
448 } 448 }
449 } 449 }
450 m_history[hix][i] = v / n; 450 m_history[hix][i] = v / n;