42 #ifndef __EST_TRACK_AUX_H__ 43 #define __EST_TRACK_AUX_H__ 71 float upper,
float lower);
73 float upper,
float lower);
121 int sample_rate,
float offset=0.0);
180 int start_frame=0,
int end_frame=-1);
201 static inline void get_frame(
const EST_Track &tr,
int sample_rate,
205 center = (
int)(tr.
t(f)*sample_rate + 0.5);
211 static inline void get_frame(
const EST_Track &tr,
int sample_rate,
213 float &start,
float ¢er,
float &end)
221 static inline void get_frame_o(
const EST_Track &tr,
int sample_rate,
223 int &start,
int ¢er,
int &end)
231 static inline void get_frame_o(
const EST_Track &tr,
int sample_rate,
233 float &start,
float ¢er,
float &end)
void time_mean_smooth(EST_Track &c, float x)
float end(const EST_Item &item)
void move_to_frame_ends(EST_Track &tr, int &start, int &end, int sample_rate, float offset=0.0)
Move the start and end variables to the start and end of the nearest frame.
int track_divide(EST_TrackList &mtfr, EST_Track &fv, EST_Relation &key)
void channel_to_time(EST_Track &tr, ssize_t channel, float scale=1.0)
void get_start_positions(const EST_Track &t, int sample_rate, EST_TBuffer< int > &pos)
Find the start point in the signal of the sections of speech related to each frame.
void simple_mean_smooth(EST_Track &c, ssize_t n, ssize_t channel=0)
unsigned int pos
Position in the structure. May or may not be useful.
A vector class for floating point numbers. EST_FVector x should be used instead of float *x wherever ...
float rms_error(EST_Track &a, EST_Track &b, ssize_t channel)
float abs_error(EST_Track &a, EST_Track &b, ssize_t channel)
void set_start(EST_Track &tr, float start)
Move the track so that it starts at the indicated time.
unsigned int n() const
Return the current position.
void extract(EST_Track &orig, float start, float end, EST_Track &res)
EST_Track error(EST_Track &ref, EST_Track &test, int relax=0)
void time_med_smooth(EST_Track &c, float x)
void track_smooth(EST_Track &c, float x, EST_String stype="")
int get_frame_size(EST_Track &pms, int current_pos, int sample_rate, int prefer_prev=0)
float & t(ssize_t i=0)
return time position of frame i
float & a(ssize_t i, int c=0)
#define VAL_REGISTER_CLASS_DCLS(NAME, CLASS)
void move_start(EST_Track &tr, float shift)
Move the track by shift seconds.
EST_String options_track_filetypes_long(void)
int nearest_boundary(EST_Track &tr, float time, int sample_rate, float offset=0)
Index of the frame whose start boundary.
void track_info(EST_Track &track)
void channel_to_time_lengths(EST_Track &tr, ssize_t channel, float scale=1.0)
void simple_med_smooth(EST_Track &c, ssize_t n, ssize_t channel=0)
EST_String options_subtrack(void)
float time(const EST_Item &item)
void align_to_track(EST_Track &tr, float &start, float &end)
Move the start and end variables to the nearest frame.
Length of section in samples.
float correlation(EST_Track &a, EST_Track &b, ssize_t channel)
EST_Track difference(EST_Track &a, EST_Track &b)
int read_track(EST_Track &tr, const EST_String &in_file, EST_Option &al)
void absolute(EST_Track &tr)
Offset from frame center to center of window.
float mean(const EST_Track &a, ssize_t channel)
float start(const EST_Item &item)
void normalise(EST_Track &tr)
float get_time_frame_size(EST_Track &pms, int i, int prefer_prev=0)
int get_order(const EST_Track &t, EST_CoefficientType type, int d=0)
How many coefficients in track (looks for Coef0 and coefN channels)
void ParallelTracks(EST_Track &a, EST_TrackList &list, const EST_String &style)
int sum_lengths(const EST_Track &t, int sample_rate, int start_frame=0, int end_frame=-1)
Total the length channel values.
EST_String options_track_filetypes(void)
EST_Track differentiate(EST_Track &c, float samp_int=0.0)
void meansd(EST_Track &a, float &m, float &sd, ssize_t channel)