 
 
	 
In file ../include/EST_Wave.h:
| class EST_Wave | 
A class for storing digital waveforms.
| ![[more]](icon1.gif)  | EST_Wave () default constructor | ||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_Wave (const EST_Wave &a) copy constructor | ||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_Wave (int samps, int chans, short* memory, int offset=0, int sample_rate=default_sample_rate, int free_when_destroyed=0) Construct from memory supplied by caller | ||||||||||||||||||||
| ![[more]](icon1.gif)  | Access functions for finding ampltiudes of samples 
 | ||||||||||||||||||||
| ![[more]](icon1.gif)  | Information functions 
 | ||||||||||||||||||||
| ![[more]](icon1.gif)  | Waveform manipulation functions 
 | ||||||||||||||||||||
| ![[more]](icon1.gif)  | File i/o functions 
 | ||||||||||||||||||||
| ![[more]](icon1.gif) EST_Wave& | operator =  (const EST_Wave& w) Assignment operator | ||||||||||||||||||||
| ![[more]](icon1.gif) EST_Wave& | operator += (const EST_Wave &a) Add to existing wave in serial. | ||||||||||||||||||||
| ![[more]](icon1.gif) EST_Wave& | operator |= (const EST_Wave &a) Add wave in parallel, ie. | ||||||||||||||||||||
| ![[more]](icon1.gif) void | integrity () const | 
A class for storing digital waveforms. The waveform is stored as an arraay of 16 bit shorts. Mutliple channels are supported, but if no channel information is given the 0th channel is accessed. <p>The waveforms can be of any sample rate, and can be changed to another samping rate using the <tt>resample</tt> function.
 EST_Wave()
 EST_Wave()
 EST_Wave(const EST_Wave &a)
 EST_Wave(const EST_Wave &a)
 EST_Wave(int samps, int chans, short* memory, int offset=0, int sample_rate=default_sample_rate, int free_when_destroyed=0)
 EST_Wave(int samps, int chans, short* memory, int offset=0, int sample_rate=default_sample_rate, int free_when_destroyed=0)
 Access functions for finding ampltiudes of samples
 Access functions for finding ampltiudes of samples 
 short& a(int i, int channel = 0)
short& a(int i, int channel = 0)
 short operator()(int i, int channel) const
short operator()(int i, int channel) const 
 short operator()(int i) const
short operator()(int i) const 
 short& a_safe(int i, int channel = 0)
short& a_safe(int i, int channel = 0)
 float t(int i) const
float t(int i) const 
 Information functions
 Information functions 
 int num_samples() const
int num_samples() const 
 int num_channels() const
int num_channels() const 
 int sample_rate() const
int sample_rate() const 
 void set_sample_rate(const int n)
void set_sample_rate(const int n)
 int length() const
int length() const 
 float end()
float end()
 bool have_left_context(unsigned int n) const
bool have_left_context(unsigned int n) const 
 EST_String sample_type() const
EST_String sample_type() const 
 EST_String name() const
EST_String name() const 
 void set_name(const EST_String n)
void set_name(const EST_String n)
 Waveform manipulation functions
 Waveform manipulation functions 
 void resize(int num_samples, int num_channels = EST_ALL, int set=1)
void resize(int num_samples, int num_channels = EST_ALL, int set=1)
 void resample(int rate)
void resample(int rate)
 void rescale(float gain, int normalize=0)
void rescale(float gain, int normalize=0)
 void clear()
void clear()
 File i/o functions
 File i/o functions 
 EST_read_status load(const EST_String filename, int offset=0, int length = 0, int rate = default_sample_rate)
EST_read_status load(const EST_String filename, int offset=0, int length = 0, int rate = default_sample_rate)
 EST_read_status load_file(const EST_String filename, const EST_String filetype, int sample_rate, const EST_String sample_type, int bo, int nc, int offset = 0, int length = 0)
EST_read_status load_file(const EST_String filename, const EST_String filetype, int sample_rate, const EST_String sample_type, int bo, int nc, int offset = 0, int length = 0)
 EST_Wave& operator = (const EST_Wave& w)
EST_Wave& operator = (const EST_Wave& w)
 EST_Wave& operator +=(const EST_Wave &a)
EST_Wave& operator +=(const EST_Wave &a)
 EST_Wave& operator |=(const EST_Wave &a)
EST_Wave& operator |=(const EST_Wave &a)
 void integrity() const
void integrity() 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