From: fujishita t. <fjs...@us...> - 2017-02-27 05:14:04
|
Update of /cvsroot/sp-tk/SPTK/src/bin/pitch/snack In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19163 Modified Files: sigproc.c jkGetF0.c Log Message: delete unused parameter Index: jkGetF0.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/pitch/snack/jkGetF0.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** jkGetF0.c 22 Dec 2016 10:53:10 -0000 1.16 --- jkGetF0.c 27 Feb 2017 05:14:02 -0000 1.17 *************** *** 544,551 **** register int i, lastl, *t; register float o, p, q, *r, *s, clip; ! int start, ncan, maxl; clip = (float) (cand_thresh * cross->maxval); - maxl = cross->maxloc; lastl = nlags - 2; start = cross->firstlag; --- 544,550 ---- register int i, lastl, *t; register float o, p, q, *r, *s, clip; ! int start, ncan; clip = (float) (cand_thresh * cross->maxval); lastl = nlags - 2; start = cross->firstlag; *************** *** 1863,1867 **** int done; long buff_size, actsize; ! double sf, start_time; F0_params *par, *read_f0_params(); float *f0p, *vuvp, *rms_speech, *acpkp; --- 1862,1866 ---- int done; long buff_size, actsize; ! double sf; F0_params *par, *read_f0_params(); float *f0p, *vuvp, *rms_speech, *acpkp; *************** *** 1967,1971 **** if (framestep > 0) /* If a value was specified with -S, use it. */ par->frame_step = (float) (framestep / sf); - start_time = 0.0f; if(check_f0_params(interp, par, sf)){ Tcl_AppendResult(interp, "invalid/inconsistent parameters -- exiting.", NULL); --- 1966,1969 ---- *************** *** 1999,2003 **** if (framestep > 0) /* If a value was specified with -S, use it. */ par->frame_step = (float) (framestep / sf); - start_time = 0.0f; if (check_f0_params(par, sf)) { --- 1997,2000 ---- Index: sigproc.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/pitch/snack/sigproc.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** sigproc.c 22 Dec 2016 10:53:11 -0000 1.8 --- sigproc.c 27 Feb 2017 05:14:02 -0000 1.9 *************** *** 552,556 **** register double engc; int i, iloc, total; - int sizei, sizeo, maxsize; /* Compute mean in reference window and subtract this from the --- 552,555 ---- *************** *** 585,592 **** for(j=size+nlags+start, dq = dbdata, p=data; j--; ) *dq++ = *p++ - engr; - maxsize = start + nlags; - sizei = size + start + nlags + 1; - sizeo = nlags + 1; - /* Compute energy in reference window. */ for(j=size, dp=dbdata, sum=0.0; j--; ) { --- 584,587 ---- |