143 integer rci_dim1 = 0, rci_offset, i__1, i__2;
150 real alrn, alro, yarc[10], prop;
151 integer i__, j, vflag, jused, lsamp;
239 rci_offset = rci_dim1 + 1;
257 ipito = &(st->
ipito);
260 jsamp = &(st->
jsamp);
270 *ratio = *rms / (*rmso + 8.f);
278 *jsamp = *
lframe - *nout * *pitch;
290 for (i__ = 1; i__ <= i__1; ++i__) {
292 for (j = 1; j <= i__2; ++j) {
293 rci[j + i__ * rci_dim1] = rc[j];
303 slope = (*pitch - *ipito) / (
real) lsamp;
307 if (voice[1] == *ivoico && voice[2] == voice[1]) {
317 slope = (*pitch - *ipito) / (
real) lsamp;
321 if (*ivoico == voice[1]) {
326 nl = lsamp - *
lframe * 3 / 4;
329 ipiti[2] = nl - ipiti[1];
335 for (i__ = 1; i__ <= i__1; ++i__) {
336 rci[i__ + rci_dim1] = rco[i__ - 1];
337 rci[i__ + (rci_dim1 << 1)] = rco[i__ - 1];
338 rco[i__ - 1] = rc[i__];
347 if (*ivoico != voice[1]) {
349 lsamp = *
lframe / 4 + *jsamp;
352 lsamp = *
lframe * 3 / 4 + *jsamp;
355 for (i__ = 1; i__ <= i__1; ++i__) {
356 yarc[i__ - 1] = rc[i__];
357 rc[i__] = rco[i__ - 1];
466 for (i__ = istart; i__ <= i__1; ++i__) {
467 r__1 = *ipito + slope * i__;
472 if (ip <= i__ - jused) {
485 ivuv[*nout] = ivoice;
487 prop = (jused - ip / 2) / (
real) lsamp;
489 for (j = 1; j <= i__2; ++j) {
490 alro = (
real)log((rco[j - 1] + 1) / (1 - rco[j - 1]));
491 alrn = (
real)log((rc[j] + 1) / (1 - rc[j]));
492 xxy = alro + prop * (alrn - alro);
493 xxy = (
real)exp(xxy);
494 rci[j + *nout * rci_dim1] = (xxy - 1) / (xxy + 1);
496 rmsi[*nout] = (
real)(log(*rmso) + prop * (log(*rms) - log(*rmso)));
497 rmsi[*nout] = (
real)exp(rmsi[*nout]);
555 uvpit = (
real) ((lsamp - istart) / 2);
561 for (i__ = 1; i__ <= i__1; ++i__) {
562 rc[i__] = yarc[i__ - 1];
563 rco[i__ - 1] = yarc[i__ - 1];
567 *jsamp = lsamp - jused;
578 for (i__ = 1; i__ <= i__1; ++i__) {
579 rco[i__ - 1] = rc[i__];
struct sla_ringing_trunk * first