shithub: aubio

Download patch

ref: 7cdabbe183f6b66bc8626db5b383aa418a496321
parent: 116bd1b775471efeec4a96d59d108c9c791fc89c
author: Paul Brossier <piem@piem.org>
date: Tue Feb 16 12:48:22 EST 2016

src/spectral/phasevoc.c: use ishift for perfect reconstruction with odd length window

--- a/src/spectral/phasevoc.c
+++ b/src/spectral/phasevoc.c
@@ -64,7 +64,7 @@
   /* 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);
 }