OpenWareLaboratory
ZeroCrossingPitchDetector Class Reference

Public Member Functions

BiquadFiltergetFilter ()
 
float getFrequency ()
 
void process (FloatArray input)
 
void setHighPassCutoff (float fc)
 
void setLowPassCutoff (float fc)
 
void setSamplingRate (float aSamplingRate)
 
 ZeroCrossingPitchDetector (float aSamplingRate, int blocksize, int aNumLowPassStages=1, int aNumHighPassStages=1)
 
 ~ZeroCrossingPitchDetector ()
 

Detailed Description

Definition at line 113 of file PitchDetector.h.

Constructor & Destructor Documentation

ZeroCrossingPitchDetector::ZeroCrossingPitchDetector ( float  aSamplingRate,
int  blocksize,
int  aNumLowPassStages = 1,
int  aNumHighPassStages = 1 
)
inline
ZeroCrossingPitchDetector::~ZeroCrossingPitchDetector ( )
inline

Definition at line 134 of file PitchDetector.h.

References BiquadFilter::destroy(), and FloatArray::destroy().

Member Function Documentation

BiquadFilter* ZeroCrossingPitchDetector::getFilter ( )
inline

Definition at line 195 of file PitchDetector.h.

float ZeroCrossingPitchDetector::getFrequency ( )
inline

Definition at line 189 of file PitchDetector.h.

References FloatArray::getMean().

void ZeroCrossingPitchDetector::process ( FloatArray  input)
inline

Definition at line 162 of file PitchDetector.h.

References ASSERT, FloatArray::getSize(), and BiquadFilter::process().

void ZeroCrossingPitchDetector::setHighPassCutoff ( float  fc)
inline
void ZeroCrossingPitchDetector::setLowPassCutoff ( float  fc)
inline
void ZeroCrossingPitchDetector::setSamplingRate ( float  aSamplingRate)
inline

Definition at line 139 of file PitchDetector.h.


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