#include <LPC.h>
Inheritance diagram for csl::LPCAnalyzer:

Public Member Functions | |
| LPCAnalyzer (UnitGenerator &in, unsigned size=CGestalt::blockSize(), unsigned hopSize=CGestalt::blockSize(), unsigned order=50) | |
| Forward FFT = analysis. | |
| ~LPCAnalyzer () | |
| unsigned | windowSize () |
| no setters | |
| unsigned | hopSize () |
| unsigned | LPCOrder () |
| Buffer | getCoefficients () |
| Buffer | getResidual () |
| double | getError () |
| void | setFileNames (char *coeff, char *resid) |
| set the file names and open the files | |
| void | setPreEmphasis (double factor) |
| void | setBWExpansion (double factor) |
| void | closeFiles () |
| close the files | |
| void | setOverwrite (bool reuse) |
| void | setUseWindow (bool use) |
| analyze a buffer, write it out if the files are set, then signal your observers | |
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
Protected Attributes | |
| unsigned | mWindowSize |
| input window size | |
| unsigned | mHopSize |
| input hop size | |
| unsigned | mLPCOrder |
| LPC order. | |
| double | mPredErr |
| LPC pred.error. | |
| double | mPreEmphasis |
| LPC pre-emph factor. | |
| double | mBWExpansion |
| LPC bandwidth expansion factor. | |
| bool | mOverwriteOutput |
| whether to replace the output with the input (or the residual) after signalling observers | |
| bool | mUseWindow |
| Buffer | mTempBuffer |
| Protected buffers and analysis objects the input buffer. | |
| Buffer | mWindowBuffer |
| Buffer to store window. | |
| Buffer | mLPCCoefficients |
| the LPC reflection coefficients | |
| Buffer | mFilterCoefficients |
| the LPC filter coefficients | |
| Buffer | mFilterInput |
| the LPC filter input store | |
| Buffer | mPCCoefficients |
| the LPC PC coefficients | |
| Buffer | mLPCResidual |
| the LPC residual | |
| RingBuffer | mRing |
| Butter * | mLoPass |
| Filters and FFT for analysis low-pass filter. | |
| Butter * | mHiPass |
| hi-pass filter | |
| FFT * | mFFT |
| FFT for pitch est. | |
| FILE * | mCoeffFile |
| file ptr for the coefficient file | |
| SoundFile * | mResidFile |
| sound file for the residual file | |
|
||||||||||||||||||||
|
Forward FFT = analysis.
|
|
|
|
|
|
no setters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
set the file names and open the files
|
|
|
|
|
|
|
|
|
close the files
|
|
|
|
|
|
analyze a buffer, write it out if the files are set, then signal your observers
|
|
||||||||||||
|
|
|
|
input window size
|
|
|
input hop size
|
|
|
LPC order.
|
|
|
LPC pred.error.
|
|
|
LPC pre-emph factor.
|
|
|
LPC bandwidth expansion factor.
|
|
|
whether to replace the output with the input (or the residual) after signalling observers
|
|
|
whether to use a rectangular or Hamming window |
|
|
Protected buffers and analysis objects the input buffer.
|
|
|
Buffer to store window.
|
|
|
the LPC reflection coefficients
|
|
|
the LPC filter coefficients
|
|
|
the LPC filter input store
|
|
|
the LPC PC coefficients
|
|
|
the LPC residual
|
|
|
used for the analysis UGens |
|
|
Filters and FFT for analysis low-pass filter.
|
|
|
hi-pass filter
|
|
|
FFT for pitch est.
|
|
|
file ptr for the coefficient file
|
|
|
sound file for the residual file
|
1.4.5-20051010