40 #include "EST_cmd_line.h"
42 #include "EST_Track.h"
43 #include "ling_class/EST_relation_aux.h"
44 #include "EST_string_aux.h"
82 int main (
int argc,
char *argv[])
92 const float default_frame_shift = 0.01;
96 EST_String(
"[input label file] -o [output file] [options]") +
97 "Summary: generate F0 file from tilt or RFC label file\n"
98 "use \"-\" to make input and output files stdin/out\n"
99 "-h Options help\n\n"+
100 "-noconn Synthesize events only - no connections in output\n"
101 "-o <ofile> Output F0 file\n"
102 "-otype <string> File type for output label file\n"
103 "-event_names <string> List of labels to be classed as events. \n"
104 " Lists are specified as quoted strings with spaces \n"
105 " separating each item, e.g.: \"a b c d\"\n\n"
106 "-s <float> Frame spacing of generated contour in seconds\n",
110 init_lib_ops(al, op);
115 float prev_end = 0.0;
117 for (e = ev.
head(); e; e = e->next())
119 e->
set(
"start", prev_end);
120 prev_end = e->
F(
"end");
123 pstring = al.
present(
"-event_names") ? al.
val(
"-event_names"):
125 StringtoStrList(pstring, event_list);
127 convert_to_broad(ev, event_list,
"int_event");
128 shift = al.
present(
"-s") ? al.
fval(
"-s") : default_frame_shift;
130 if (ev.
f(
"intonation_style") ==
"tilt")
131 tilt_synthesis(fz, ev, shift, al.
present(
"-noconn"));
137 rfc_synthesis(fz, ev, shift, al.
present(
"-noconn"));
142 fz.
save(out_file, al.
val(
"-otype"));