 
 
	 
In file ../include/EST_Track.h:
| class EST_Track | 
A class for storing time aligned coefficients.
| ![[more]](icon1.gif)  | Constructor and Destructor functions 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Configuring Tracks 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Global track information 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Functions for sub tracks, channels and frames. 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Channel information 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Accessing amplitudes The following functions can be used 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Timing 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | File i/o functions 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Utility functions 
 | 
A class for storing time aligned coefficients.some stuff.
 Constructor and Destructor functions
 Constructor and Destructor functions
 EST_Track()
 EST_Track()
 EST_Track(const EST_Track &a)
 EST_Track(const EST_Track &a)
 EST_Track(int num_frames, int num_channels)
 EST_Track(int num_frames, int num_channels)
 EST_Track(int num_frames, EST_StrList &map)
 EST_Track(int num_frames, EST_StrList &map)
 ~EST_Track()
 ~EST_Track()
 Configuring Tracks
 Configuring Tracks
 void resize(int num_frames, int num_channels, bool preserve = 1)
void resize(int num_frames, int num_channels, bool preserve = 1)
 void resize(int num_frames, EST_StrList &map, bool preserve = 1)
void resize(int num_frames, EST_StrList &map, bool preserve = 1)
 void resize_aux(EST_StrList &map, bool preserve = 1)
void resize_aux(EST_StrList &map, bool preserve = 1)
 void set_num_channels(int n, bool preserve = 1)
void set_num_channels(int n, bool preserve = 1)
 void set_num_frames(int n, bool preserve = 1)
void set_num_frames(int n, bool preserve = 1)
 void set_channel_name(const EST_String &name, int channel)
void set_channel_name(const EST_String &name, int channel)
 void set_aux_channel_name(const EST_String &name, int channel)
void set_aux_channel_name(const EST_String &name, int channel)
 void copy_setup(const EST_Track& a)
void copy_setup(const EST_Track& a)
 Global track information
 Global track information
 EST_String name() const
EST_String name() const 
 void set_name(const EST_String &n)
void set_name(const EST_String &n)
 Functions for sub tracks, channels and frames.
 Functions for sub tracks, channels and frames.
 void frame(EST_FVector &fv, int n, int startf=0, int nf=EST_ALL)
void frame(EST_FVector &fv, int n, int startf=0, int nf=EST_ALL)
 void channel(EST_FVector &cv, int n, int startf=0, int nf=EST_ALL)
void channel(EST_FVector &cv, int n, int startf=0, int nf=EST_ALL)
 void channel(EST_FVector &cv, const char*  name, int startf=0, int nf=EST_ALL)
void channel(EST_FVector &cv, const char*  name, int startf=0, int nf=EST_ALL)
 void sub_track(EST_Track &st, int start_frame, int nframes, const EST_String &start_chan_name, int nchans=EST_ALL)
void sub_track(EST_Track &st, int start_frame, int nframes, const EST_String &start_chan_name, int nchans=EST_ALL)
 void sub_track(EST_Track &st, int start_frame, int nframes, const EST_String &start_chan_name, const EST_String &end_chan_name)
void sub_track(EST_Track &st, int start_frame, int nframes, const EST_String &start_chan_name, const EST_String &end_chan_name)
 void sub_track(EST_Track &st, int start_frame=0, int nframes=EST_ALL, int start_chan=0, int nchans=EST_ALL) const
void sub_track(EST_Track &st, int start_frame=0, int nframes=EST_ALL, int start_chan=0, int nchans=EST_ALL) const 
make st refer to a portion of the track. No values are copied - an internal pointer in st is set to the specified portion of the the track. After this, st behaves like a normal track. Its first channel is the same as start_channel and its first frame is the same as start_frame. Any values written into st will changes values in the main track. st cannot be resized.
 void copy_sub_track(EST_Track &st, int start_frame=0, int nframes=EST_ALL, int start_chan=0, int nchans=EST_ALL) const
void copy_sub_track(EST_Track &st, int start_frame=0, int nframes=EST_ALL, int start_chan=0, int nchans=EST_ALL) const 
 void copy_channel_out(int n, float* buf, int offset=0, int num=EST_ALL) const
void copy_channel_out(int n, float* buf, int offset=0, int num=EST_ALL) const 
 void copy_frame_out(int n, float* buf, int offset=0, int num=EST_ALL) const
void copy_frame_out(int n, float* buf, int offset=0, int num=EST_ALL) const 
 void copy_frame_out(int n, EST_FVector &f, int offset=0, int num=EST_ALL) const
void copy_frame_out(int n, EST_FVector &f, int offset=0, int num=EST_ALL) const 
 void copy_channel_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 copy_channel_in(int c, const EST_Track &from, int from_c, int from_offset=0, int offset=0, int num=EST_ALL)
void copy_channel_in(int c, const EST_Track &from, int from_c, int from_offset=0, int offset=0, int num=EST_ALL)
 void copy_frame_in(int n, const float* buf, int offset=0, int num=EST_ALL)
void copy_frame_in(int n, const float* buf, int offset=0, int num=EST_ALL)
 void copy_frame_in(int n, const EST_FVector &t, int offset=0, int num=EST_ALL)
void copy_frame_in(int n, const EST_FVector &t, int offset=0, int num=EST_ALL)
 void copy_frame_in(int i, const EST_Track &from, int from_f, int from_offset=0, int offset=0, int num=EST_ALL)
void copy_frame_in(int i, const EST_Track &from, int from_f, int from_offset=0, int offset=0, int num=EST_ALL)
 Channel information
 Channel information
 int channel_position(const char* name, int offset=0) const
int channel_position(const char* name, int offset=0) const 
 int channel_position(EST_String name, int offset=0) const
int channel_position(EST_String name, int offset=0) const 
 bool has_channel(const char* name) const
bool has_channel(const char* name) const 
 bool has_channel(EST_String name) const
bool has_channel(EST_String name) const 
 Accessing amplitudes The following functions can be used
 Accessing amplitudes The following functions can be used
tr.a(10, 5) = 10.3;
can be used to set the 10th frame of the 5th channel and
cout << tr.a(10, 5);
can be used to print the same information. Most of these functions have a const equivalent for helping the compiler in read only operations.
 float& a(int i, int c=0)
float& a(int i, int c=0)
 float& a_no_check(int i, int c=0)
float& a_no_check(int i, int c=0)
 float& a(int i, const char* name, int offset=0)
float& a(int i, const char* name, int offset=0)
 float& a(float t, int c=0, EST_InterpType interp=it_nearest)
float& a(float t, int c=0, EST_InterpType interp=it_nearest)
 float& operator() (int i, int c)
float& operator() (int i, int c)
 float& operator() (int i)
float& operator() (int i)
 float& operator() (float t, int c)
float& operator() (float t, int c)
 float& operator() (float t)
float& operator() (float t)
 Timing
 Timing
 float& t(int i=0)
float& t(int i=0)
 float ms_t(int i) const
float ms_t(int i) const 
 void fill_time(float t, int start =1)
void fill_time(float t, int start =1)
 void fill_time(EST_Track &t)
void fill_time(EST_Track &t)
 void fill(float v)
void fill(float v)
 void sample(float shift)
void sample(float shift)
 void change_type(float nshift, bool single_break)
void change_type(float nshift, bool single_break)
 float shift() const
float shift() const 
 float start() const
float start() const 
 float end() const
float end() const 
 Auxiliary channels
 Auxiliary channels
The following functions can be used to access to auxiliary track information. Most of these functions can be used for reading or writing to this point, thus
tr.aux(10, "voicing") = 1;
can be used to set the 10th frame of the "voicing" channel and
cout << tr.a(10, "voicing");
can be used to print the same information. Most of these functions have a const equivalent for helping the compiler in read only operations.
Auxiliary channels are usually accessed by name rather than numerical index. The names are set using the set_aux_channel_names() function.
 File i/o functions
 File i/o functions
 EST_read_status load(const EST_String name, float ishift = 0.0)
EST_read_status load(const EST_String name, float ishift = 0.0)
 EST_read_status load(EST_TokenStream &ts, float ishift = 0.0)
EST_read_status load(EST_TokenStream &ts, float ishift = 0.0)
 EST_read_status load(const EST_String name, const EST_String type, float ishift = 0.0)
EST_read_status load(const EST_String name, const EST_String type, float ishift = 0.0)
 EST_write_status save(const EST_String name, const EST_String EST_filetype = "")
EST_write_status save(const EST_String name, const EST_String EST_filetype = "")
 EST_write_status save(FILE* fp, const EST_String EST_filetype = "")
EST_write_status save(FILE* fp, const EST_String EST_filetype = "")
 Utility functions
 Utility functions 
 int empty() const
int empty() const 
 void set_break(int i)
void set_break(int i)
 void set_value(int i)
void set_value(int i)
 int val(int i) const
int val(int i) const 
 int track_break(int i) const
int track_break(int i) const 
 int prev_non_break(int i) const
int prev_non_break(int i) const 
 int next_non_break(int i) const
int next_non_break(int i) const 
 int index(float t) const
int index(float t) const 
 int index_below(float x) const
int index_below(float x) const 
 int num_frames() const
int num_frames() const 
 int length() const
int length() const 
 int num_channels() const
int num_channels() const 
 int num_aux_channels() const
int num_aux_channels() const 
 void rm_excess_breaks()
void rm_excess_breaks()
 bool equal_space() const
bool equal_space() const 
 bool single_break() const
bool single_break() const 
Alphabetic index HTML hierarchy of classes or Java
 
This page is part of the 
Edinburgh Speech Tools Library documentation
Copyright  University of Edinburgh 1997
Contact:  
         speech_tools@cstr.ed.ac.uk