comparison 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
comparison
equal deleted inserted replaced
16:3715efc38f95 17:67d54627efd3
123 * other than a flat sum. 123 * other than a flat sum.
124 */ 124 */
125 bool processBlock(size_t channel, 125 bool processBlock(size_t channel,
126 float *in, float *out, 126 float *in, float *out,
127 float *modulation, 127 float *modulation,
128 bool knownPercussive); 128 bool lastPercussive);
129 129
130 size_t m_channels; 130 size_t m_channels;
131 float m_ratio; 131 float m_ratio;
132 bool m_sharpen; 132 bool m_sharpen;
133 size_t m_n1; 133 size_t m_n1;
137 137
138 float **m_prevPhase; 138 float **m_prevPhase;
139 float **m_prevAdjustedPhase; 139 float **m_prevAdjustedPhase;
140 float **m_prevMag; 140 float **m_prevMag;
141 int *m_prevPercussiveCount; 141 int *m_prevPercussiveCount;
142 bool m_prevPercussive;
142 143
143 float *m_dbuf; 144 float *m_dbuf;
144 fftwf_complex *m_time; 145 fftwf_complex *m_time;
145 fftwf_complex *m_freq; 146 fftwf_complex *m_freq;
146 fftwf_plan m_plan; 147 fftwf_plan m_plan;