shithub: aubio

Download patch

ref: fa74361e4d4aefdd8d8a43797b27d799e04c4872
parent: 5bd806d4c89dadf0d5fbc394fe256bb6d254d2f4
author: Paul Brossier <piem@piem.org>
date: Mon Feb 8 13:05:50 EST 2016

src/pitch/pitchmcomb.c: scan across all spectrum

--- a/src/pitch/pitchmcomb.c
+++ b/src/pitch/pitchmcomb.c
@@ -364,7 +364,7 @@
   /* bug: should check if size / 8 > post+pre+1 */
   uint_t i, j;
   uint_t spec_size;
-  p->spec_partition = 4;
+  p->spec_partition = 2;
   p->ncand = 5;
   p->npartials = 5;
   p->cutoff = 1.;
@@ -376,7 +376,7 @@
   p->goodcandidate = 0;
   p->phasefreq = bufsize / hopsize / TWO_PI;
   p->phasediff = TWO_PI * hopsize / bufsize;
-  spec_size = bufsize / p->spec_partition;
+  spec_size = bufsize / p->spec_partition + 1;
   //p->pickerfn = quadpick;
   //p->biquad = new_biquad(0.1600,0.3200,0.1600, -0.5949, 0.2348);
   /* allocate temp memory */