Debian Codegraph @

artsynth/Speaker_def.h

raw symbols SCIP
1 /* Speaker_def.h
2 *
3 * Copyright (C) 1992-2005,2011,2015-2018 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20 #define ooSTRUCT Speaker_CordDimensions
21 oo_DEFINE_STRUCT (Speaker_CordDimensions)
22
23 oo_INT16 (numberOfMasses)
24 oo_DOUBLE (length)
25
26 oo_END_STRUCT (Speaker_CordDimensions)
27 #undef ooSTRUCT
28
29
30 #define ooSTRUCT Speaker_CordSpring
31 oo_DEFINE_STRUCT (Speaker_CordSpring)
32
33 oo_DOUBLE (thickness)
34 oo_DOUBLE (mass)
35 oo_DOUBLE (k1)
36
37 oo_END_STRUCT (Speaker_CordSpring)
38 #undef ooSTRUCT
39
40
41 #define ooSTRUCT Speaker_GlottalShunt
42 oo_DEFINE_STRUCT (Speaker_GlottalShunt)
43
44 oo_DOUBLE (Dx)
45 oo_DOUBLE (Dy)
46 oo_DOUBLE (Dz)
47
48 oo_END_STRUCT (Speaker_GlottalShunt)
49 #undef ooSTRUCT
50
51
52 #define ooSTRUCT Speaker_Velum
53 oo_DEFINE_STRUCT (Speaker_Velum) // V
54
55 oo_DOUBLE (x)
56 oo_DOUBLE (y)
57 oo_DOUBLE (a)
58
59 oo_END_STRUCT (Speaker_Velum)
60 #undef ooSTRUCT
61
62
63 #define ooSTRUCT Speaker_Palate
64 oo_DEFINE_STRUCT (Speaker_Palate) // OM
65
66 oo_DOUBLE (radius)
67
68 oo_END_STRUCT (Speaker_Palate)
69 #undef ooSTRUCT
70
71
72 #define ooSTRUCT Speaker_Tip
73 oo_DEFINE_STRUCT (Speaker_Tip)
74
75 oo_DOUBLE (length)
76
77 oo_END_STRUCT (Speaker_Tip)
78 #undef ooSTRUCT
79
80
81 #define ooSTRUCT Speaker_Alveoli
82 oo_DEFINE_STRUCT (Speaker_Alveoli)
83
84 oo_DOUBLE (x)
85 oo_DOUBLE (y)
86 oo_DOUBLE (a)
87
88 oo_END_STRUCT (Speaker_Alveoli)
89 #undef ooSTRUCT
90
91
92 #define ooSTRUCT Speaker_TeethCavity
93 oo_DEFINE_STRUCT (Speaker_TeethCavity)
94
95 oo_DOUBLE (dx1)
96 oo_DOUBLE (dx2)
97 oo_DOUBLE (dy)
98
99 oo_END_STRUCT (Speaker_TeethCavity)
100 #undef ooSTRUCT
101
102
103 #define ooSTRUCT Speaker_LowerTeeth
104 oo_DEFINE_STRUCT (Speaker_LowerTeeth) // rest position of J
105
106 oo_DOUBLE (r)
107 oo_DOUBLE (a)
108
109 oo_END_STRUCT (Speaker_LowerTeeth)
110 #undef ooSTRUCT
111
112
113 #define ooSTRUCT Speaker_UpperTeeth
114 oo_DEFINE_STRUCT (Speaker_UpperTeeth) // U
115
116 oo_DOUBLE (x)
117 oo_DOUBLE (y)
118
119 oo_END_STRUCT (Speaker_UpperTeeth)
120 #undef ooSTRUCT
121
122
123 #define ooSTRUCT Speaker_Lip
124 oo_DEFINE_STRUCT (Speaker_Lip)
125
126 oo_DOUBLE (dx)
127 oo_DOUBLE (dy)
128
129 oo_END_STRUCT (Speaker_Lip)
130 #undef ooSTRUCT
131
132
133 #define ooSTRUCT Speaker_Nose
134 oo_DEFINE_STRUCT (Speaker_Nose)
135
136 oo_DOUBLE (Dx)
137 oo_DOUBLE (Dz)
138 oo_VEC (weq, 14)
139
140 oo_END_STRUCT (Speaker_Nose)
141 #undef ooSTRUCT
142
143
144 #define ooSTRUCT Speaker
145 oo_DEFINE_CLASS (Speaker, Daata)
146
147 oo_DOUBLE (relativeSize) // different for female, male, child
148
149 /* In the larynx. */
150
151 oo_STRUCT (Speaker_CordDimensions, cord)
152 oo_STRUCT (Speaker_CordSpring, lowerCord)
153 oo_STRUCT (Speaker_CordSpring, upperCord)
154 oo_STRUCT (Speaker_GlottalShunt, shunt)
155
156 /* Above the larynx. */
157
158 oo_STRUCT (Speaker_Velum, velum)
159 oo_STRUCT (Speaker_Palate, palate)
160 oo_STRUCT (Speaker_Tip, tip)
161 oo_DOUBLE (neutralBodyDistance)
162 oo_STRUCT (Speaker_Alveoli, alveoli)
163 oo_STRUCT (Speaker_TeethCavity, teethCavity)
164 oo_STRUCT (Speaker_LowerTeeth, lowerTeeth)
165 oo_STRUCT (Speaker_UpperTeeth, upperTeeth)
166 oo_STRUCT (Speaker_Lip, lowerLip)
167 oo_STRUCT (Speaker_Lip, upperLip)
168
169 /* In the nasal cavity. */
170
171 oo_STRUCT (Speaker_Nose, nose)
172
173 oo_END_CLASS (Speaker)
174 #undef ooSTRUCT
175
176 /* End of file Speaker_def.h */