Edinburgh Speech Tools  2.4-release
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
EST_SingleChannelWave Class Reference

#include <include/EST_SingleChannelWave.h>

Inheritance diagram for EST_SingleChannelWave:
Collaboration diagram for EST_SingleChannelWave:

Public Member Functions

 EST_SingleChannelWave ()
 default constructor
 
 EST_SingleChannelWave (const EST_SingleChannelWave &w)
 
 EST_SingleChannelWave (int n, int sr)
 
INLINE short & a_no_check (int i, int channel=0)
 
INLINE short a_no_check (int i, int channel=0) const
 
- Public Member Functions inherited from EST_Wave
 EST_Wave ()
 default constructor
 
 EST_Wave (const EST_Wave &a)
 copy constructor
 
 EST_Wave (int n, int c, int sr)
 
 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.
 
const EST_SMatrixvalues () const
 
EST_SMatrixvalues ()
 
EST_Waveoperator= (const EST_Wave &w)
 Assignment operator.
 
EST_Waveoperator+= (const EST_Wave &a)
 
EST_Waveoperator|= (const EST_Wave &a)
 
void integrity () const
 
short & a (int i, int channel=0)
 
short a (int i, int channel=0) const
 
INLINE short & a_no_check (int i, int channel=0)
 
INLINE short a_no_check (int i, int channel=0) const
 
INLINE short & a_no_check_1 (int i, int channel=0)
 
INLINE short a_no_check_1 (int i, int channel=0) const
 
INLINE short set_a (int i, int channel=0, short val=0)
 
short operator() (int i, int channel) const
 
short operator() (int i) const
 
short & a_safe (int i, int channel=0)
 
float t (int i) const
 return the time position in seconds of the ith sample
 
int num_samples () const
 return the number of samples in the waveform
 
int num_channels () const
 return the number of channels in the waveform
 
int sample_rate () const
 return the sampling rate (frequency)
 
void set_sample_rate (const int n)
 Set sampling rate to n
 
int length () const
 return the size of the waveform, i.e. the number of samples.
 
float end ()
 return the time position of the last sample.
 
bool have_left_context (unsigned int n) const
 Can we look N samples to the left?
 
EST_String sample_type () const
 
void set_sample_type (const EST_String t)
 
EST_String file_type () const
 
void set_file_type (const EST_String t)
 
EST_String name () const
 A string identifying the waveform, commonly used to store the filename.
 
void set_name (const EST_String n)
 Sets name.
 
void resize (int num_samples, int num_channels=EST_ALL, int set=1)
 resize the waveform
 
void resample (int rate)
 Resample waveform to rate
 
void rescale (float gain, int normalize=0)
 
void rescale (const EST_Track &factor_contour)
 
void clear ()
 clear waveform and set size to 0.
 
void copy (const EST_Wave &from)
 
void fill (short v=0, int channel=EST_ALL)
 
void empty (int channel=EST_ALL)
 
void sample (EST_TVector< short > &sv, int n)
 
void channel (EST_TVector< short > &cv, int n)
 
void copy_channel (int n, short *buf, int offset=0, int num=EST_ALL) const
 
void copy_sample (int n, short *buf, int offset=0, int num=EST_ALL) const
 
void set_channel (int n, const short *buf, int offset=0, int num=EST_ALL)
 
void set_sample (int n, const short *buf, int offset=0, int num=EST_ALL)
 
void sub_wave (EST_Wave &sw, int offset=0, int num=EST_ALL, int start_c=0, int nchan=EST_ALL)
 
void sub_wave (EST_Wave &sw, int offset=0, int num=EST_ALL, int start_c=0, int nchan=EST_ALL) const
 
EST_read_status load (const EST_String filename, int offset=0, int length=0, int rate=default_sample_rate)
 
EST_read_status load (EST_TokenStream &ts, int offset=0, int length=0, int rate=default_sample_rate)
 
EST_read_status load (const EST_String filename, const EST_String filetype, int offset=0, int length=0, int rate=default_sample_rate)
 
EST_read_status load (EST_TokenStream &ts, const EST_String filetype, 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 (EST_TokenStream &ts, const EST_String filetype, int sample_rate, const EST_String sample_type, int bo, int nc, int offset=0, int length=0)
 
EST_write_status save (const EST_String filename, const EST_String EST_filetype="")
 
EST_write_status save (FILE *fp, const EST_String EST_filetype="")
 
EST_write_status save_file (const EST_String filename, EST_String filetype, EST_String sample_type, int bo)
 
EST_write_status save_file (FILE *fp, EST_String filetype, EST_String sample_type, int bo)
 

Additional Inherited Members

- Static Public Attributes inherited from EST_Wave
static const int default_sample_rate =16000
 
static const int default_num_channels
 
- Protected Member Functions inherited from EST_Wave
void default_vals (int n=0, int c=1)
 
void free_wave ()
 
void copy_data (const EST_Wave &w)
 
void copy_setup (const EST_Wave &w)
 
- Protected Attributes inherited from EST_Wave
EST_SMatrix p_values
 
int p_sample_rate
 

Detailed Description

An alias for wave which can be used to tell the compiler you know it is a simple one channel wave. This can speed up access.

Author
Richard Caley rjc@c.nosp@m.str..nosp@m.ed.ac.nosp@m..uk
Version
Id:
EST_SingleChannelWave.h,v 1.2 2001/04/04 13:11:27 awb Exp

Definition at line 47 of file EST_SingleChannelWave.h.


The documentation for this class was generated from the following file: