# HG changeset patch # User Chris Cannam # Date 1399385565 -3600 # Node ID 19f6832fdc8a2c537b7c135a400964a31ddd284c # Parent 2290f73923f759b94c712c8c2ae757eb626549de Ooh, that's a trappy one diff -r 2290f73923f7 -r 19f6832fdc8a src/EM.cpp --- a/src/EM.cpp Tue May 06 15:09:16 2014 +0100 +++ b/src/EM.cpp Tue May 06 15:12:45 2014 +0100 @@ -153,7 +153,7 @@ const double *w = templateFor(i, n, f); const double shift = m_shifts[f][n]; const double factor = pitch * source * shift; - v_add_with_gain(m_estimate, w, factor, m_binCount); + v_add_with_gain(m_estimate, w, m_binCount, factor); } } }