Edinburgh Speech Tools 2.4-release
 
Loading...
Searching...
No Matches
tilt.h
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 __TILT_H__
41#define __TILT_H__
42
43
44#include "ling_class/EST_Relation.h"
45
46/*float rise_amp(EST_Item *e);
47float fall_amp(EST_Item *e);
48float gen_amp(EST_Item *e);
49
50float rise_dur(EST_Item *e);
51float fall_dur(EST_Item *e);
52float gen_dur(EST_Item *e);
53
54float rfc_to_tilt_amp(EST_Item *e);
55float rfc_to_tilt_dur(EST_Item *e);
56float rfc_to_a_tilt(EST_Item *e);
57float rfc_to_d_tilt(EST_Item *e);
58float rfc_to_t_tilt(EST_Item *e);
59
60float tilt_to_rise_amp(EST_Item *e);
61float tilt_to_rise_dur(EST_Item *e);
62float tilt_to_peak_f0(EST_Item *e);
63float tilt_to_peak_pos(EST_Item *e);
64*/
65
66float fncurve(float length, float t, float curve);
67float unit_curve(float amp, float dur, float t);
68
69int event_item(EST_Item &e);
70int sil_item(EST_Item &e);
71int connection_item(EST_Item &e);
72void fill_rfc_types(EST_Relation &ev);
73
74/*
75void print_rfc2_events(EST_Relation &ev);
76*/
77void set_fn_start(EST_Relation &ev);
78
79/*
80inline float dur(EST_Item &e)
81{
82 return e.fF("end") - e.fF("start");
83}
84*/
85
86#endif /* TILT_UTILS */