Mercurial > hg > pyin
comparison VampYin.cpp @ 29:24943b76a109
fixed abs bug also on VampYin
author | matthiasm |
---|---|
date | Tue, 21 Jan 2014 22:12:21 +0000 |
parents | 177f76df473a |
children |
comparison
equal
deleted
inserted
replaced
28:401855ab368e | 29:24943b76a109 |
---|---|
336 f.values.push_back(yo.f0); | 336 f.values.push_back(yo.f0); |
337 fs[m_outNoF0].push_back(f); | 337 fs[m_outNoF0].push_back(f); |
338 } | 338 } |
339 } else if (m_outputUnvoiced == 1.0f) | 339 } else if (m_outputUnvoiced == 1.0f) |
340 { | 340 { |
341 if (abs(yo.f0) < m_fmax && abs(yo.f0) > m_fmin) { | 341 if (fabs(yo.f0) < m_fmax && fabs(yo.f0) > m_fmin) { |
342 f.values.push_back(abs(yo.f0)); | 342 f.values.push_back(fabs(yo.f0)); |
343 fs[m_outNoF0].push_back(f); | 343 fs[m_outNoF0].push_back(f); |
344 } | 344 } |
345 } else | 345 } else |
346 { | 346 { |
347 if (abs(yo.f0) < m_fmax && abs(yo.f0) > m_fmin) { | 347 if (fabs(yo.f0) < m_fmax && fabs(yo.f0) > m_fmin) { |
348 f.values.push_back(yo.f0); | 348 f.values.push_back(yo.f0); |
349 fs[m_outNoF0].push_back(f); | 349 fs[m_outNoF0].push_back(f); |
350 } | 350 } |
351 } | 351 } |
352 | 352 |