101 tr.
t(i) = (float) i * 0.01;
111 for (i = 50; i < 100; ++i)
116 for (i = 50; i < 100; ++i)
122 cout <<
"Frame 60 is not a break\n";
125 cout <<
"Frame 60 is a break\n";
180 tr.
frame(tmp_frame, 50);
190 tr.
channel(tmp_channel,
"energy");
194 tr.
frame(tmp_frame, 50, 2, 9);
198 tr.
channel(tmp_channel, 5, 400, 100);
211 melcep(sig, sub, 1.0, 20, 22);
224 tr.
sub_track(sub, 47, 39,
"cep_0",
"cep_N");
234 for (frames.
begin(tr); frames; ++frames)
237 if (frames.
n() % 50 ==0)
238 cout <<
" " << frames.
n() <<
"[" << frame.
t() <<
"]";
252 float *channel_buf, *frame_buf;
269 aux_names.
append(
"voicing");
270 aux_names.
append(
"join_points");
278 for (i = 0; i < 500; ++i)
280 tr.
aux(i,
"voicing") = i;
282 tr.
aux(i,
"cost") = 0.111;
A class for storing digital waveforms. The waveform is stored as an array of 16 bit shorts...
The file was read in successfully.
A vector class for floating point numbers. EST_FVector x should be used instead of float *x wherever ...
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
unsigned int n() const
Return the current position.
void set_num_channels(int n, bool preserve=1)
void resize(ssize_t num_frames, int num_channels, bool preserve=1)
void melcep(EST_Wave &sig, EST_Track &mfcc_track, float factor, int fbank_order, float liftering_parameter, EST_WindowFunc *wf=EST_Window::creator(DEFAULT_WINDOW_NAME), const bool include_c0=false, const bool up=false)
void sub_track(EST_Track &st, int start_frame=0, int nframes=EST_ALL, int start_chan=0, int nchans=EST_ALL)
int track_break(ssize_t i) const
return true if frame i is a break
EST_read_status load(const EST_String name, float ishift=0.0, float startt=0.0)
void set_num_frames(ssize_t n, bool preserve=1)
float & t(ssize_t i=0)
return time position of frame i
float & a(ssize_t i, int c=0)
EST_FMatrix sub(const EST_FMatrix &a, ssize_t row, ssize_t col)
The file was written successfully.
EST_write_status save(const EST_String name, const EST_String EST_filetype="")
void copy_channel_out(int n, float *buf, int offset=0, int num=EST_ALL) const
void resize_aux(EST_StrList &map, bool preserve=1)
void channel(EST_FVector &cv, ssize_t n, int startf=0, int nf=EST_ALL)
ssize_t num_frames() const
return number of frames in track
void copy_frame_out(int n, float *buf, int offset=0, int num=EST_ALL) const
void append(const T &item)
add item onto end of list
void copy_frame_in(int n, const float *buf, int offset=0, int num=EST_ALL)
void copy_channel_in(int n, const float *buf, int offset=0, int num=EST_ALL)
void begin(const Container &over)
Set the iterator ready to run over this container.
EST_Val & aux(ssize_t i, int c)
int val(ssize_t i) const
return true if frame i is a value
void frame(EST_FVector &fv, int n, int startf=0, int nf=EST_ALL)
void fill_time(float t, int start=1)
void clear(void)
remove all items in list