INSTALL.txt review.
[Faustine.git] / interpreter / preprocessor / faust-0.9.47mr3 / examples / faust-stk / phonemes.h
1 //Phonemes datas for voiceForm.dsp
2 //©Romain Michon (rmichon@ccrma.stanford.edu), 2011
3 //licence: STK-4.3
4
5 float loadPhonemeGains(int index0, int index1) {
6 static float phonemeGains[32][2] =
7 {{1.0, 0.0}, // eee
8 {1.0, 0.0}, // ihh
9 {1.0, 0.0}, // ehh
10 {1.0, 0.0}, // aaa
11
12 {1.0, 0.0}, // ahh
13 {1.0, 0.0}, // aww
14 {1.0, 0.0}, // ohh
15 {1.0, 0.0}, // uhh
16
17 {1.0, 0.0}, // uuu
18 {1.0, 0.0}, // ooo
19 {1.0, 0.0}, // rrr
20 {1.0, 0.0}, // lll
21
22 {1.0, 0.0}, // mmm
23 {1.0, 0.0}, // nnn
24 {1.0, 0.0}, // nng
25 {1.0, 0.0}, // ngg
26
27 {0.0, 0.7}, // fff
28 {0.0, 0.7}, // sss
29 {0.0, 0.7}, // thh
30 {0.0, 0.7}, // shh
31
32 {0.0, 0.7}, // xxx
33 {0.0, 0.1}, // hee
34 {0.0, 0.1}, // hoo
35 {0.0, 0.1}, // hah
36
37 {1.0, 0.1}, // bbb
38 {1.0, 0.1}, // ddd
39 {1.0, 0.1}, // jjj
40 {1.0, 0.1}, // ggg
41
42 {1.0, 1.0}, // vvv
43 {1.0, 1.0}, // zzz
44 {1.0, 1.0}, // thz
45 {1.0, 1.0} // zhh
46 };
47 return phonemeGains[index0][index1];
48 }
49
50 float loadPhonemeParameters(int index0, int index1, int index2){
51 static float phonemeParameters[32][4][3] =
52 {{ { 273, 0.996, 10}, // eee (beet)
53 {2086, 0.945, -16},
54 {2754, 0.979, -12},
55 {3270, 0.440, -17}},
56 { { 385, 0.987, 10}, // ihh (bit)
57 {2056, 0.930, -20},
58 {2587, 0.890, -20},
59 {3150, 0.400, -20}},
60 { { 515, 0.977, 10}, // ehh (bet)
61 {1805, 0.810, -10},
62 {2526, 0.875, -10},
63 {3103, 0.400, -13}},
64 { { 773, 0.950, 10}, // aaa (bat)
65 {1676, 0.830, -6},
66 {2380, 0.880, -20},
67 {3027, 0.600, -20}},
68
69 { { 770, 0.950, 0}, // ahh (father)
70 {1153, 0.970, -9},
71 {2450, 0.780, -29},
72 {3140, 0.800, -39}},
73 { { 637, 0.910, 0}, // aww (bought)
74 { 895, 0.900, -3},
75 {2556, 0.950, -17},
76 {3070, 0.910, -20}},
77 { { 637, 0.910, 0}, // ohh (bone) NOTE:: same as aww (bought)
78 { 895, 0.900, -3},
79 {2556, 0.950, -17},
80 {3070, 0.910, -20}},
81 { { 561, 0.965, 0}, // uhh (but)
82 {1084, 0.930, -10},
83 {2541, 0.930, -15},
84 {3345, 0.900, -20}},
85
86 { { 515, 0.976, 0}, // uuu (foot)
87 {1031, 0.950, -3},
88 {2572, 0.960, -11},
89 {3345, 0.960, -20}},
90 { { 349, 0.986, -10}, // ooo (boot)
91 { 918, 0.940, -20},
92 {2350, 0.960, -27},
93 {2731, 0.950, -33}},
94 { { 394, 0.959, -10}, // rrr (bird)
95 {1297, 0.780, -16},
96 {1441, 0.980, -16},
97 {2754, 0.950, -40}},
98 { { 462, 0.990, +5}, // lll (lull)
99 {1200, 0.640, -10},
100 {2500, 0.200, -20},
101 {3000, 0.100, -30}},
102
103 { { 265, 0.987, -10}, // mmm (mom)
104 {1176, 0.940, -22},
105 {2352, 0.970, -20},
106 {3277, 0.940, -31}},
107 { { 204, 0.980, -10}, // nnn (nun)
108 {1570, 0.940, -15},
109 {2481, 0.980, -12},
110 {3133, 0.800, -30}},
111 { { 204, 0.980, -10}, // nng (sang) NOTE:: same as nnn
112 {1570, 0.940, -15},
113 {2481, 0.980, -12},
114 {3133, 0.800, -30}},
115 { { 204, 0.980, -10}, // ngg (bong) NOTE:: same as nnn
116 {1570, 0.940, -15},
117 {2481, 0.980, -12},
118 {3133, 0.800, -30}},
119
120 { {1000, 0.300, 0}, // fff
121 {2800, 0.860, -10},
122 {7425, 0.740, 0},
123 {8140, 0.860, 0}},
124 { {0, 0.000, 0}, // sss
125 {2000, 0.700, -15},
126 {5257, 0.750, -3},
127 {7171, 0.840, 0}},
128 { { 100, 0.900, 0}, // thh
129 {4000, 0.500, -20},
130 {5500, 0.500, -15},
131 {8000, 0.400, -20}},
132 { {2693, 0.940, 0}, // shh
133 {4000, 0.720, -10},
134 {6123, 0.870, -10},
135 {7755, 0.750, -18}},
136
137 { {1000, 0.300, -10}, // xxx NOTE:: Not Really Done Yet
138 {2800, 0.860, -10},
139 {7425, 0.740, 0},
140 {8140, 0.860, 0}},
141 { { 273, 0.996, -40}, // hee (beet) (noisy eee)
142 {2086, 0.945, -16},
143 {2754, 0.979, -12},
144 {3270, 0.440, -17}},
145 { { 349, 0.986, -40}, // hoo (boot) (noisy ooo)
146 { 918, 0.940, -10},
147 {2350, 0.960, -17},
148 {2731, 0.950, -23}},
149 { { 770, 0.950, -40}, // hah (father) (noisy ahh)
150 {1153, 0.970, -3},
151 {2450, 0.780, -20},
152 {3140, 0.800, -32}},
153
154 { {2000, 0.700, -20}, // bbb NOTE:: Not Really Done Yet
155 {5257, 0.750, -15},
156 {7171, 0.840, -3},
157 {9000, 0.900, 0}},
158 { { 100, 0.900, 0}, // ddd NOTE:: Not Really Done Yet
159 {4000, 0.500, -20},
160 {5500, 0.500, -15},
161 {8000, 0.400, -20}},
162 { {2693, 0.940, 0}, // jjj NOTE:: Not Really Done Yet
163 {4000, 0.720, -10},
164 {6123, 0.870, -10},
165 {7755, 0.750, -18}},
166 { {2693, 0.940, 0}, // ggg NOTE:: Not Really Done Yet
167 {4000, 0.720, -10},
168 {6123, 0.870, -10},
169 {7755, 0.750, -18}},
170
171 { {2000, 0.700, -20}, // vvv NOTE:: Not Really Done Yet
172 {5257, 0.750, -15},
173 {7171, 0.840, -3},
174 {9000, 0.900, 0}},
175 { { 100, 0.900, 0}, // zzz NOTE:: Not Really Done Yet
176 {4000, 0.500, -20},
177 {5500, 0.500, -15},
178 {8000, 0.400, -20}},
179 { {2693, 0.940, 0}, // thz NOTE:: Not Really Done Yet
180 {4000, 0.720, -10},
181 {6123, 0.870, -10},
182 {7755, 0.750, -18}},
183 { {2693, 0.940, 0}, // zhh NOTE:: Not Really Done Yet
184 {4000, 0.720, -10},
185 {6123, 0.870, -10},
186 {7755, 0.750, -18}}
187 };
188 return phonemeParameters[index0][index1][index2];
189 }