# HG changeset patch # User matthiasm # Date 1390342341 0 # Node ID 24943b76a1097fd058c11ca3487b6a6f3c5910ee # Parent 401855ab368eb667275f788a767ae1ff93007c76 fixed abs bug also on VampYin diff -r 401855ab368e -r 24943b76a109 VampYin.cpp --- 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); }