Debian Codegraph @

dwtools/CC.h

raw
1 #ifndef _CC_h_
2 #define _CC_h_
3 /* CC.h
4 *
5 * Copyright (C) 1993-2019 David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 djmw 20010219 Cepstral Coefficients (abstract) class.
23 djmw 20020402 GPL header
24 djmw 20030612 Include CC_def.h
25 djmw 20110306 Latest modification.
26 */
27
28 #include "Graphics.h"
29 #include "Matrix.h"
30
31 #include "CC_def.h"
32
33 void CC_init (CC me, double tmin, double tmax, integer nt, double dt, double t1, integer maximumNumberOfCoefficients, double fmin, double fmax);
34
35 void CC_getNumberOfCoefficients_extrema (CC me, integer startframe, integer endframe, integer *min, integer *max);
36
37 integer CC_getMaximumNumberOfCoefficientsUsed (CC me);
38
39 integer CC_getMinimumNumberOfCoefficients (CC me, integer startframe, integer endframe);
40
41 integer CC_getMaximumNumberOfCoefficients (CC me, integer startframe, integer endframe);
42
43 integer CC_getNumberOfCoefficients (CC me, integer iframe);
44
45 double CC_getValueInFrame (CC me, integer iframe, integer index);
46
47 double CC_getC0ValueInFrame (CC me, integer iframe);
48
49 void CC_paint (CC me, Graphics g, double xmin, double xmax, integer cmin, integer cmax, double minimum, double maximum, bool garnish);
50
51 void CC_drawC0 (CC me, Graphics g, double xmin, double xmax, double ymin, double ymax, bool garnish);
52
53 autoMatrix CC_to_Matrix (CC me);
54
55 double CC_getValue (CC me, double t, integer index);
56
57 /******************* Frames ************************************************/
58
59 void CC_Frame_init (CC_Frame me, integer numberOfCoefficients);
60
61 #endif /* _CC_h_ */