45#include "ling_class/EST_Relation.h"
46#include "ling_class/EST_relation_aux.h"
47#include "EST_track_aux.h"
48#include "EST_string_aux.h"
49#include "EST_io_aux.h"
50#include "EST_Option.h"
61 for (i = 0; i <
tr.num_frames(); ++i)
103 for (i = 0; i <
tr.num_frames(); ++i)
108 get_frame_o(
tr, sample_rate, i, b, c,
e);
110 get_frame(
tr, sample_rate, i, b, c,
e);
135 float shift,
float offset,
float
142 n = (int)
ceil(
lab.tail()->F(
"end")/shift);
153 for (i = 0; i < n; ++i)
155 tr.a(i) = (pos_phone(
lab,
tr.t(i), shift) *
range) + offset;
158 for (; i <
endn; ++i)
160 tr.a(i) = (
pad ==
"high") ?
range + offset : offset;
170 float shift = op.
present(
"frame_shift") ? op.
fval(
"frame_shift"): 0.01;
171 float offset = op.
present(
"label_offset")? op.
fval(
"label_offset"):0.0;
174 float length =
al.present(
"-length") ?
al.fval(
"-length") : -1.0;
176 label_to_track(
lab,
tr, shift, offset,
range, length,
al.val(
"-pad", 0));
189 for (p =
seg.head(); p != 0; p = inext(p))
190 if (p->f(
"pos") == 1)
191 if ((
x < (p->
F(
"end") + (shift / 2.0))) &&
192 (
x > (start(p) - (shift / 2.0))))
const float F(const EST_String &name) const
float fval(const EST_String &rkey, int m=1) const
const int present(const K &rkey) const
Returns true if key is present.