74 cout <<
"position 1\n";
81 sig.
load(DATA
"/kdt_001.wav");
88 num_frames = (
int)ceil(sig.
end() / 0.01);
89 fv.
resize(num_frames, lpc_order + 1);
151 fv.
resize(num_frames, lpc_order + 1);
154 for (i = 0; i < num_frames; ++i)
155 fv.
t(i) = shift * (float) i;
168 fv.
load(DATA
"/kdt_001.pm");
169 make_track(fv,
"lpc", lpc_order + 1);
180 cout <<
"position 3\n";
208 coef_types.
append(
"power");
241 power(sig, part, 0.01);
256 base_list.
append(
"power");
355 for (i = 0; i < 256; ++i)
356 frame[i] = (
float)sig.
a(i + 1000) * win_vals[i];
410 int start = (k1 * s_shift) - (s_length/2);
422 fv.
load(DATA
"/kd1_001.pm");
456 int filter_order = 99;
A class for storing digital waveforms. The waveform is stored as an array of 16 bit shorts...
EST_FVector design_FIR_filter(const EST_FVector &freq_response, int filter_order)
void FIRfilter(EST_Wave &in_sig, const EST_FVector &numerator, int delay_correction=0)
static Func * creator(const char *name, bool report_error=false)
Return the creation function for the given window type.
void delta(EST_Track &tr, EST_Track &d, int regression_length=3)
void add_channels_to_map(EST_StrList &map, EST_StrList &types, EST_Features &op, int order)
void print_track_map(EST_Track &t)
static void window_signal(const EST_Wave &sig, EST_WindowFunc *make_window, int start, int size, EST_TBuffer< float > &frame)
EST_FVector design_lowpass_FIR_filter(int sample_rate, int freq, int order)
A vector class for floating point numbers. EST_FVector x should be used instead of float *x wherever ...
void FIRlowpass_filter(EST_Wave &sigin, int freq, int order=DEFAULT_FILTER_ORDER)
void power(EST_Wave &sig, EST_Track &a, float factor)
static void make_window(EST_TBuffer< float > &window_vals, int size, const char *name, int window_centre)
void resize(ssize_t num_frames, int num_channels, bool preserve=1)
short & a(ssize_t i, ssize_t channel=0)
void sig2coef(EST_Wave &sig, EST_Track &a, EST_String type, float factor=2.0, EST_WindowFunc *wf=EST_Window::creator(DEFAULT_WINDOW_NAME))
void sub_track(EST_Track &st, int start_frame=0, int nframes=EST_ALL, int start_chan=0, int nchans=EST_ALL)
EST_read_status load(const EST_String name, float ishift=0.0, float startt=0.0)
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
void FIRlowpass_double_filter(EST_Wave &sigin, int freq, int order=DEFAULT_FILTER_ORDER)
int Stringtoi(EST_String s)
Make an int from a EST_String. EST_String equivalent of atoi()
int init_lib_ops(EST_Option &al, EST_Option &options)
void sigpr_delta(EST_Wave &sig, EST_Track &fv, EST_Features &op, const EST_StrList &slist)
ssize_t num_frames() const
return number of frames in track
void EST_WindowFunc(int size, EST_TBuffer< float > &r_window, int window_centre)
Function which creates a window.
void FIRhighpass_filter(EST_Wave &in_sig, int freq, int order)
void append(const T &item)
add item onto end of list
void sigpr_acc(EST_Wave &sig, EST_Track &fv, EST_Features &op, const EST_StrList &slist)
float end()
return the time position of the last sample.
int sample_rate() const
return the sampling rate (frequency)
float start(const EST_Item &item)
void FIRhighpass_double_filter(EST_Wave &sigin, int freq, int order=DEFAULT_FILTER_ORDER)
void print_map(EST_TrackMap &t)
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
EST_read_status load(const EST_String filename, int offset=0, ssize_t length=0, int rate=default_sample_rate)
void sig2lpc(const EST_FVector &sig, EST_FVector &acf, EST_FVector &ref, EST_FVector &lpc)
void sigpr_base(EST_Wave &sig, EST_Track &fv, EST_Features &op, const EST_StrList &slist)
EST_FVector design_highpass_FIR_filter(int sample_rate, int freq, int order)