diff dsp/phasevocoder/PhaseVocoder.cpp @ 346:58ba20857a5e

Tidy
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 03 Oct 2013 13:22:53 +0100
parents 5eb9c2387108
children fdaa63607c15
line wrap: on
line diff
--- 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];
     }