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::ZeroCrossingPitchDetector ( float  aSamplingRate,
int  blocksize,
int  aNumLowPassStages = 1,
int  aNumHighPassStages = 1 
)
inline

◆ ~ZeroCrossingPitchDetector()

ZeroCrossingPitchDetector::~ZeroCrossingPitchDetector ( )
inline

Definition at line 134 of file PitchDetector.h.

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

Member Function Documentation

◆ getFilter()

BiquadFilter* ZeroCrossingPitchDetector::getFilter ( )
inline

Definition at line 184 of file PitchDetector.h.

◆ getFrequency()

float ZeroCrossingPitchDetector::getFrequency ( )
inline

Definition at line 178 of file PitchDetector.h.

References FloatArray::getMean().

◆ process()

void ZeroCrossingPitchDetector::process ( FloatArray  input)
inline

Definition at line 152 of file PitchDetector.h.

References ASSERT, SimpleArray< T >::getSize(), and BiquadFilter::process().

◆ setHighPassCutoff()

void ZeroCrossingPitchDetector::setHighPassCutoff ( float  fc)
inline

Definition at line 147 of file PitchDetector.h.

References FilterStage::BUTTERWORTH_Q, and BiquadFilter::setHighPass().

Referenced by ZeroCrossingPitchDetector().

◆ setLowPassCutoff()

void ZeroCrossingPitchDetector::setLowPassCutoff ( float  fc)
inline

Definition at line 142 of file PitchDetector.h.

References FilterStage::BUTTERWORTH_Q, and BiquadFilter::setLowPass().

Referenced by ZeroCrossingPitchDetector().

◆ setSamplingRate()

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: