HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_PitchDetect Class Referencefinal

#include <CL_PitchDetect.h>

+ Inheritance diagram for CL_PitchDetect:

Public Member Functions

 CL_PitchDetect (int size, fpreal freqres)
 
 ~CL_PitchDetect () override
 
void setPitchMode (int multi)
 
void setMultiParms (fpreal start, fpreal end, int divs, int log, fpreal *results)
 
void setBandwidth (fpreal low, fpreal high)
 
void setMinLevel (fpreal min)
 
void setFloatingBandwidth (int on, fpreal bandwidth)
 
void setHarmonicCompensation (int on, int correct, fpreal error)
 
void setSmoothJumps (int on, fpreal minjump)
 
void setFrequencyHint (int on, fpreal hint, fpreal bandwidth)
 
void getPitchResult (fpreal &pitch, fpreal &volume)
 
fprealgetPitchResult ()
 
void reset (fpreal val=0.0) override
 
int maxFilterSamples () override
 
void clearSamples (int from)
 
- Public Member Functions inherited from CL_SlidingWindow
 CL_SlidingWindow (int size, int overlap)
 
 CL_SlidingWindow (UT_IStream &is)
 
virtual ~CL_SlidingWindow ()
 
void filterSamples (int n, const fpreal *source, fpreal *dest)
 
void shiftSamples (int nsource, const fpreal *source, int ndest, fpreal *dest, int shift)
 
void setOverlap (int overlap)
 
void resize (int size, int preserve=0)
 
virtual void save (UT_OStream &os)
 
virtual bool load (UT_IStream &is, int version)
 

Protected Attributes

fpreal myMinLevel
 
fpreal myFreqRes
 
fpreal myLowFreq
 
fpreal myHighFreq
 
int myFloatingBandwidthOn
 
fpreal myFloatingBandwidth
 
int myHarmonicCompensation
 
fpreal myHarmonicError
 
int myHarmonicCorrect
 
int mySmoothJumps
 
fpreal myMinJumpLevel
 
int myUseHint
 
fpreal myFrequencyHint
 
fpreal myHintBandwidth
 
fpreal myLastFreq
 
fpreal myPitchFreq
 
fpreal myPitchVolume
 
int myMode
 
int myLogMode
 
int myDivisions
 
fprealmyMultiResults
 
fprealmyWindow
 
fprealmyData
 
fprealmyReal
 
fprealmyImag
 
fprealmyKernel
 
fprealmyFiltered
 
int myKernelSize
 
UT_FFT< fpreal > * myTransform
 
UT_Array< cl_PitchNodemyHarmonics
 
- Protected Attributes inherited from CL_SlidingWindow
int myWindowSize
 
int myOverlap
 
int myLastFilteredSample
 
fprealmyPreviousData
 
fprealmyMirrorData
 

Detailed Description

Definition at line 25 of file CL_PitchDetect.h.

Constructor & Destructor Documentation

CL_PitchDetect::CL_PitchDetect ( int  size,
fpreal  freqres 
)
CL_PitchDetect::~CL_PitchDetect ( )
override

Member Function Documentation

void CL_PitchDetect::clearSamples ( int  from)
void CL_PitchDetect::getPitchResult ( fpreal pitch,
fpreal volume 
)
fpreal* CL_PitchDetect::getPitchResult ( )
int CL_PitchDetect::maxFilterSamples ( )
overridevirtual

Reimplemented from CL_SlidingWindow.

void CL_PitchDetect::reset ( fpreal  val = 0.0)
overridevirtual

Reimplemented from CL_SlidingWindow.

void CL_PitchDetect::setBandwidth ( fpreal  low,
fpreal  high 
)
void CL_PitchDetect::setFloatingBandwidth ( int  on,
fpreal  bandwidth 
)
void CL_PitchDetect::setFrequencyHint ( int  on,
fpreal  hint,
fpreal  bandwidth 
)
void CL_PitchDetect::setHarmonicCompensation ( int  on,
int  correct,
fpreal  error 
)
void CL_PitchDetect::setMinLevel ( fpreal  min)
void CL_PitchDetect::setMultiParms ( fpreal  start,
fpreal  end,
int  divs,
int  log,
fpreal results 
)
void CL_PitchDetect::setPitchMode ( int  multi)
void CL_PitchDetect::setSmoothJumps ( int  on,
fpreal  minjump 
)

Member Data Documentation

fpreal* CL_PitchDetect::myData
protected

Definition at line 97 of file CL_PitchDetect.h.

int CL_PitchDetect::myDivisions
protected

Definition at line 93 of file CL_PitchDetect.h.

fpreal* CL_PitchDetect::myFiltered
protected

Definition at line 101 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myFloatingBandwidth
protected

Definition at line 74 of file CL_PitchDetect.h.

int CL_PitchDetect::myFloatingBandwidthOn
protected

Definition at line 73 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myFreqRes
protected

Definition at line 67 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myFrequencyHint
protected

Definition at line 84 of file CL_PitchDetect.h.

int CL_PitchDetect::myHarmonicCompensation
protected

Definition at line 76 of file CL_PitchDetect.h.

int CL_PitchDetect::myHarmonicCorrect
protected

Definition at line 78 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myHarmonicError
protected

Definition at line 77 of file CL_PitchDetect.h.

UT_Array<cl_PitchNode> CL_PitchDetect::myHarmonics
protected

Definition at line 105 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myHighFreq
protected

Definition at line 71 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myHintBandwidth
protected

Definition at line 85 of file CL_PitchDetect.h.

fpreal* CL_PitchDetect::myImag
protected

Definition at line 99 of file CL_PitchDetect.h.

fpreal* CL_PitchDetect::myKernel
protected

Definition at line 100 of file CL_PitchDetect.h.

int CL_PitchDetect::myKernelSize
protected

Definition at line 102 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myLastFreq
protected

Definition at line 87 of file CL_PitchDetect.h.

int CL_PitchDetect::myLogMode
protected

Definition at line 92 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myLowFreq
protected

Definition at line 70 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myMinJumpLevel
protected

Definition at line 81 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myMinLevel
protected

Definition at line 66 of file CL_PitchDetect.h.

int CL_PitchDetect::myMode
protected

Definition at line 91 of file CL_PitchDetect.h.

fpreal* CL_PitchDetect::myMultiResults
protected

Definition at line 94 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myPitchFreq
protected

Definition at line 88 of file CL_PitchDetect.h.

fpreal CL_PitchDetect::myPitchVolume
protected

Definition at line 89 of file CL_PitchDetect.h.

fpreal* CL_PitchDetect::myReal
protected

Definition at line 98 of file CL_PitchDetect.h.

int CL_PitchDetect::mySmoothJumps
protected

Definition at line 80 of file CL_PitchDetect.h.

UT_FFT<fpreal>* CL_PitchDetect::myTransform
protected

Definition at line 103 of file CL_PitchDetect.h.

int CL_PitchDetect::myUseHint
protected

Definition at line 83 of file CL_PitchDetect.h.

fpreal* CL_PitchDetect::myWindow
protected

Definition at line 96 of file CL_PitchDetect.h.


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