src/spectral/phasevoc.c: apply windowing to resynthesized grain
authorPaul Brossier <piem@piem.org>
Wed, 27 Apr 2016 12:56:07 +0000 (14:56 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 27 Apr 2016 12:56:07 +0000 (14:56 +0200)
src/spectral/phasevoc.c

index 80329db..5f1d858 100644 (file)
@@ -65,6 +65,8 @@ void aubio_pvoc_rdo(aubio_pvoc_t *pv,cvec_t * fftgrain, fvec_t * synthnew) {
   aubio_fft_rdo(pv->fft,fftgrain,pv->synth);
   /* unshift */
   fvec_ishift(pv->synth);
+  /* windowing */
+  fvec_weight(pv->synth, pv->w);
   /* additive synthesis */
   aubio_pvoc_addsynth(pv, synthnew);
 }