69 n = (
int)(op.
F(
"window_length") / fz.
shift());
70 sprintf(nstring,
"%d", n);
71 op.
set(
"point_window_size", nstring);
73 if (!op.
present(
"icda_no_smooth"))
76 if (op.
present(
"icda_no_interp"))
82 int fill = op.
present(
"icda_fi") ? 1 : 0;
83 interp(sm_fz, speech, fill, smi_fz);
85 n = (
int)(op.
F(
"second_length") / fz.
shift());
86 sprintf(nstring,
"%d", n);
87 op.
set(
"point_window_size", nstring);
89 if (!op.
present(
"icda_no_smooth"))
101 parse_ms_list(op, ms);
103 if (op.
present(
"point_window_size"))
151 if ((fill == 1) || (speech.
a(i) > 0.5))
161 if (n_val <= 0) n_val = p_val;
162 if (p_val <= 0) p_val = n_val;
164 m = (n_val - p_val) / ( interp.
t(n) - interp.
t(p));
166 interp.
a(i) = (m *
f) + p_val;
178 if (al.
present(
"smooth_double"))
184 if (al.
present(
"first_length"))
186 if (al.
present(
"second_length"))
188 if (al.
present(
"window_length"))
void set_value(ssize_t i)
set frame i to be a value
void set_channel_name(const EST_String &name, int channel)
set the name of the channel.
void set_break(ssize_t i)
set frame i to be a break
int num_channels() const
return number of channels in track
void set(const EST_String &name, int ival)
void resize(ssize_t num_frames, int num_channels, bool preserve=1)
int track_break(ssize_t i) const
return true if frame i is a break
void array_smoother(float *p_array, int arraylen, struct Ms_Op *ms)
float & t(ssize_t i=0)
return time position of frame i
float & a(ssize_t i, int c=0)
ssize_t next_non_break(ssize_t i) const
void smooth_phrase(EST_Track &fz, EST_Track &speech, EST_Features &op, EST_Track &smi_fz)
void smooth_portion(EST_Track &c, EST_Features &op)
int present(const EST_String &name) const
ssize_t num_frames() const
return number of frames in track
int I(const EST_String &path) const
int empty() const
returns true if no values are set in the frame
struct Ms_Op * default_ms_op(struct Ms_Op *ms)
float F(const EST_String &path) const