Edinburgh Speech Tools  2.1-release
tilt.h
Go to the documentation of this file.
1 /*************************************************************************/
2 /* */
3 /* Centre for Speech Technology Research */
4 /* University of Edinburgh, UK */
5 /* Copyright (c) 1996 */
6 /* All Rights Reserved. */
7 /* */
8 /* Permission is hereby granted, free of charge, to use and distribute */
9 /* this software and its documentation without restriction, including */
10 /* without limitation the rights to use, copy, modify, merge, publish, */
11 /* distribute, sublicense, and/or sell copies of this work, and to */
12 /* permit persons to whom this work is furnished to do so, subject to */
13 /* the following conditions: */
14 /* 1. The code must retain the above copyright notice, this list of */
15 /* conditions and the following disclaimer. */
16 /* 2. Any modifications must be clearly marked as such. */
17 /* 3. Original authors' names are not deleted. */
18 /* 4. The authors' names are not used to endorse or promote products */
19 /* derived from this software without specific prior written */
20 /* permission. */
21 /* */
22 /* THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK */
23 /* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
24 /* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
25 /* SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE */
26 /* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
27 /* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
28 /* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
29 /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
30 /* THIS SOFTWARE. */
31 /* */
32 /*************************************************************************/
33 /* Author : Paul Taylor */
34 /* Date : February 1996 */
35 /*-----------------------------------------------------------------------*/
36 /* Internal tilt functions */
37 /* */
38 /*=======================================================================*/
39 
40 #ifndef INTONATION_TILT_H
41 #define INTONATION_TILT_H
42 
43 
45 
46 /*float rise_amp(EST_Item *e);
47 float fall_amp(EST_Item *e);
48 float gen_amp(EST_Item *e);
49 
50 float rise_dur(EST_Item *e);
51 float fall_dur(EST_Item *e);
52 float gen_dur(EST_Item *e);
53 
54 float rfc_to_tilt_amp(EST_Item *e);
55 float rfc_to_tilt_dur(EST_Item *e);
56 float rfc_to_a_tilt(EST_Item *e);
57 float rfc_to_d_tilt(EST_Item *e);
58 float rfc_to_t_tilt(EST_Item *e);
59 
60 float tilt_to_rise_amp(EST_Item *e);
61 float tilt_to_rise_dur(EST_Item *e);
62 float tilt_to_peak_f0(EST_Item *e);
63 float tilt_to_peak_pos(EST_Item *e);
64 */
65 
66 float fncurve(float length, float t, float curve);
67 float unit_curve(float amp, float dur, float t);
68 
69 int event_item(EST_Item &e);
70 int sil_item(EST_Item &e);
73 
74 /*
75 void print_rfc2_events(EST_Relation &ev);
76 */
77 void set_fn_start(EST_Relation &ev);
78 
79 /*
80 inline float dur(EST_Item &e)
81 {
82  return e.fF("end") - e.fF("start");
83 }
84 */
85 
86 #endif /* INTONATION_ */
float fncurve(float length, float t, float curve)
Definition: tilt_utils.cc:393
float unit_curve(float amp, float dur, float t)
Definition: tilt_utils.cc:374
int sil_item(EST_Item &e)
Definition: tilt_utils.cc:414
void fill_rfc_types(EST_Relation &ev)
Definition: tilt_utils.cc:237
int event_item(EST_Item &e)
Definition: tilt_utils.cc:410
int connection_item(EST_Item &e)
Definition: tilt_utils.cc:418
void set_fn_start(EST_Relation &ev)
Definition: tilt_utils.cc:298