shithub: aubio

Download patch

ref: 1f4d932e233b44476f39d699a19e6c023e058626
parent: ac65a2fc00d7ebf27d53aa88d419b6dd299e4176
author: Paul Brossier <piem@piem.org>
date: Wed Apr 27 17:00:13 EDT 2016

src/spectral/phasevoc.c: fix scaling factor for win_s = 4 * hop_s

--- a/src/spectral/phasevoc.c
+++ b/src/spectral/phasevoc.c
@@ -119,7 +119,8 @@
   pv->end_datasize = pv->end * sizeof(smpl_t);
   pv->hop_datasize = pv->hop_s * sizeof(smpl_t);
 
-  pv->scale = pv->hop_s * 2. / pv->win_s;
+  // for reconstruction with 75% overlap
+  pv->scale = 2./3.;
 
   return pv;