src/spectral/phasevoc.c: use ishift for perfect reconstruction with odd length window
authorPaul Brossier <piem@piem.org>
Tue, 16 Feb 2016 16:48:22 +0000 (17:48 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 16 Feb 2016 16:48:22 +0000 (17:48 +0100)
src/spectral/phasevoc.c

index 4fdbd78..150c359 100644 (file)
@@ -64,7 +64,7 @@ void aubio_pvoc_rdo(aubio_pvoc_t *pv,cvec_t * fftgrain, fvec_t * synthnew) {
   /* calculate rfft */
   aubio_fft_rdo(pv->fft,fftgrain,pv->synth);
   /* unshift */
-  fvec_shift(pv->synth);
+  fvec_ishift(pv->synth);
   /* additive synthesis */
   aubio_pvoc_addsynth(pv, synthnew);
 }