Mercurial > hg > pyin
diff VampYin.cpp @ 29:24943b76a109
fixed abs bug also on VampYin
author | matthiasm |
---|---|
date | Tue, 21 Jan 2014 22:12:21 +0000 |
parents | 177f76df473a |
children |
line wrap: on
line diff
--- a/VampYin.cpp Tue Jan 21 21:50:14 2014 +0000 +++ b/VampYin.cpp Tue Jan 21 22:12:21 2014 +0000 @@ -338,13 +338,13 @@ } } else if (m_outputUnvoiced == 1.0f) { - if (abs(yo.f0) < m_fmax && abs(yo.f0) > m_fmin) { - f.values.push_back(abs(yo.f0)); + if (fabs(yo.f0) < m_fmax && fabs(yo.f0) > m_fmin) { + f.values.push_back(fabs(yo.f0)); fs[m_outNoF0].push_back(f); } } else { - if (abs(yo.f0) < m_fmax && abs(yo.f0) > m_fmin) { + if (fabs(yo.f0) < m_fmax && fabs(yo.f0) > m_fmin) { f.values.push_back(yo.f0); fs[m_outNoF0].push_back(f); }