diff audioio/PhaseVocoderTimeStretcher.h @ 17:67d54627efd3

* Fix phase calculation for percussive frames, and some tweaks -- we can do better fairly easily though
author Chris Cannam
date Wed, 13 Sep 2006 18:58:17 +0000
parents 3715efc38f95
children c1aee08c60b1
line wrap: on
line diff
--- a/audioio/PhaseVocoderTimeStretcher.h	Wed Sep 13 17:17:42 2006 +0000
+++ b/audioio/PhaseVocoderTimeStretcher.h	Wed Sep 13 18:58:17 2006 +0000
@@ -125,7 +125,7 @@
     bool processBlock(size_t channel,
                       float *in, float *out,
                       float *modulation,
-                      bool knownPercussive);
+                      bool lastPercussive);
 
     size_t m_channels;
     float m_ratio;
@@ -139,6 +139,7 @@
     float **m_prevAdjustedPhase;
     float **m_prevMag;
     int *m_prevPercussiveCount;
+    bool m_prevPercussive;
 
     float *m_dbuf;
     fftwf_complex *m_time;