This file is indexed.

/usr/include/jkFormant.h is in libsnack2-dev 2.2.10-dfsg1-12build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * This software has been licensed to the Centre of Speech Technology, KTH
 * by AT&T Corp. and Microsoft Corp. with the terms in the accompanying
 * file BSD.txt, which is a BSD style license.
 *
 *    "Copyright (c) 1987-1990  AT&T, Inc.
 *    "Copyright (c) 1986-1990  Entropic Speech, Inc. 
 *    "Copyright (c) 1990-1991  Entropic Research Laboratory, Inc. 
 *                   All rights reserved"
 */

 /* this is an older version of the waves tracks.h needed for this version 
    of formant
 */



#define DEB_PAUSE	8	/* debug levels */
#define DEB_LPC_PARS	4
#define DEB_PARAMS	2
#define DEB_ENTRY	1
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define PI 3.1415927
#define MAXFORMANTS 7

/* structure definitions for the pitch tracker */
#define CROSS  struct cross_rec
struct cross_rec { /* for storing the crosscorrelation information */
	double	rms;	/* rms energy in the reference window */
	double	k1;	/* 1st-order autoregressive flattening constant. */
	double	maxval;	/* max in the crosscorr. fun. q15 */
	short	maxloc; /* lag # at which max occured	*/
	short	nlags;	/* the number of correlation lags computed */
	short	firstlag; /* the first non-zero lag computed */
	short	*correl; /* the normalized corsscor. fun. q15 */
};

#define DPREC struct dp_rec
struct dp_rec { /* for storing the DP information */
	short	ncands;	/* # of candidate pitch intervals in the frame */
	short	*locs; /* locations of the candidates */
	short	*pvals; /* peak values of the candidates */
	double	*mpvals; /* modified peak values of the candidates */
	short	*prept; /* pointers to best previous cands. */
	double	*dpvals; /* cumulative error for each candidate */
};
/* end of structure definitions for the pitch tracker */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* Structure definitions for the formant tracker.. */

typedef struct form_latt { /* structure of a DP lattice node for formant tracking */
	short ncand; /* # of candidate mappings for this frame */
	short **cand;      /* pole-to-formant map-candidate array */
	short *prept;	 /* backpointer array for each frame */
	double *cumerr; 	 /* cum. errors associated with each cand. */
} FORM;

typedef struct pole_array {   /* structure to hold raw LPC analysis data */
	double rms;    /* rms for current LPC analysis frame */
	double rms2;    /* rms for current F0 analysis frame */
	double f0;     /* fundamental frequency estimate for this frame */
	double pv;		/* probability that frame is voiced */
	double change; /* spec. distance between current and prev. frames */
	short npoles; /* # of complex poles from roots of LPC polynomial */
	double *freq;  /* array of complex pole frequencies (Hz) */
	double *band;  /* array of complex pole bandwidths (Hz) */
} POLE;
/* End of structure definitions for the formant tracker. */