# HG changeset patch # User Chris Cannam # Date 1380802973 -3600 # Node ID be6d811fd81f6647720aa99102f63ee280bed584 # Parent b0e98fcfacd7757bb294b8d05b11e32e8c339424 Tidy diff -r b0e98fcfacd7 -r be6d811fd81f dsp/phasevocoder/PhaseVocoder.cpp --- a/dsp/phasevocoder/PhaseVocoder.cpp Thu Oct 03 13:03:31 2013 +0100 +++ b/dsp/phasevocoder/PhaseVocoder.cpp Thu Oct 03 13:22:53 2013 +0100 @@ -120,10 +120,6 @@ void PhaseVocoder::unwrapPhases(double *theta, double *unwrapped) { - cerr << "PhaseVocoder::unwrapPhases" << endl; - -//!!! if magnitude in a bin below a threshold, reset stored unwrapped phase angle for that bin - for (int i = 0; i < m_n/2 + 1; ++i) { double omega = (2 * M_PI * m_hop * i) / m_n; @@ -132,8 +128,6 @@ unwrapped[i] = m_unwrapped[i] + omega + error; - cerr << "i = " << i << ", (" << m_real[i] << "," << m_imag[i] << "), instantaneous phase = " << theta[i] << ", prev phase = " << m_phase[i] << ", omega = " << omega << ", expected = " << expected << ", error = " << error << ", unwrapped = " << unwrapped[i] << endl; - m_phase[i] = theta[i]; m_unwrapped[i] = unwrapped[i]; }