From: Paul Brossier Date: Mon, 8 Feb 2016 17:05:50 +0000 (+0100) Subject: src/pitch/pitchmcomb.c: scan across all spectrum X-Git-Tag: 0.4.4~300^2~347 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=fa74361e4d4aefdd8d8a43797b27d799e04c4872;p=aubio.git src/pitch/pitchmcomb.c: scan across all spectrum --- diff --git a/src/pitch/pitchmcomb.c b/src/pitch/pitchmcomb.c index b8714210..66103c7e 100644 --- a/src/pitch/pitchmcomb.c +++ b/src/pitch/pitchmcomb.c @@ -364,7 +364,7 @@ new_aubio_pitchmcomb (uint_t bufsize, uint_t hopsize) /* 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 @@ new_aubio_pitchmcomb (uint_t bufsize, uint_t hopsize) 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 */