OpenWareLaboratory
FourierPitchDetector Class Reference

Public Member Functions

float computeFrequency ()
 
 FourierPitchDetector ()
 
 FourierPitchDetector (int fftSize, float aSamplingRate)
 
float getFrequency ()
 
size_t getSize ()
 
void init (int fftSize, float aSamplingRate)
 
int process (FloatArray input)
 
void setMaxFrequency (float aMaxFrequency)
 
void setMinFrequency (float aMinFrequency)
 
void setSamplingRate (float asamplingRate)
 
 ~FourierPitchDetector ()
 

Detailed Description

Definition at line 10 of file PitchDetector.h.

Constructor & Destructor Documentation

◆ FourierPitchDetector() [1/2]

FourierPitchDetector::FourierPitchDetector ( )
inline

Definition at line 24 of file PitchDetector.h.

◆ FourierPitchDetector() [2/2]

FourierPitchDetector::FourierPitchDetector ( int  fftSize,
float  aSamplingRate 
)
inline

Definition at line 27 of file PitchDetector.h.

References init().

◆ ~FourierPitchDetector()

FourierPitchDetector::~FourierPitchDetector ( )
inline

Definition at line 30 of file PitchDetector.h.

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

Member Function Documentation

◆ computeFrequency()

◆ getFrequency()

float FourierPitchDetector::getFrequency ( )
inline

Definition at line 108 of file PitchDetector.h.

Referenced by computeFrequency().

◆ getSize()

size_t FourierPitchDetector::getSize ( )
inline

Definition at line 47 of file PitchDetector.h.

References FastFourierTransform::getSize().

◆ init()

void FourierPitchDetector::init ( int  fftSize,
float  aSamplingRate 
)
inline

◆ process()

int FourierPitchDetector::process ( FloatArray  input)
inline

◆ setMaxFrequency()

void FourierPitchDetector::setMaxFrequency ( float  aMaxFrequency)
inline

Definition at line 56 of file PitchDetector.h.

◆ setMinFrequency()

void FourierPitchDetector::setMinFrequency ( float  aMinFrequency)
inline

Definition at line 53 of file PitchDetector.h.

◆ setSamplingRate()

void FourierPitchDetector::setSamplingRate ( float  asamplingRate)
inline

Definition at line 50 of file PitchDetector.h.


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