From 1d0370a45ed42a29684f4076730bdf8f298dfe5b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 27 Apr 2016 14:56:07 +0200 Subject: [PATCH] src/spectral/phasevoc.c: apply windowing to resynthesized grain --- src/spectral/phasevoc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spectral/phasevoc.c b/src/spectral/phasevoc.c index 80329db7..5f1d8584 100644 --- a/src/spectral/phasevoc.c +++ b/src/spectral/phasevoc.c @@ -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); } -- 2.11.0