Ardour  9.0-pre0-582-g084a23a80d
DetectionFunction Class Reference

#include <DetectionFunction.h>

Public Member Functions

double * getSpectrumMagnitude ()
 
 DetectionFunction (DFConfig Config)
 
virtual ~DetectionFunction ()
 
double processTimeDomain (const double *samples)
 
double processFrequencyDomain (const double *reals, const double *imags)
 

Private Member Functions

void whiten ()
 
double runDF ()
 
double HFC (unsigned int length, double *src)
 
double specDiff (unsigned int length, double *src)
 
double phaseDev (unsigned int length, double *srcPhase)
 
double complexSD (unsigned int length, double *srcMagnitude, double *srcPhase)
 
double broadband (unsigned int length, double *srcMagnitude)
 
void initialise (DFConfig Config)
 
void deInitialise ()
 

Private Attributes

int m_DFType
 
unsigned int m_dataLength
 
unsigned int m_halfLength
 
unsigned int m_stepSize
 
double m_dbRise
 
bool m_whiten
 
double m_whitenRelaxCoeff
 
double m_whitenFloor
 
double * m_magHistory
 
double * m_phaseHistory
 
double * m_phaseHistoryOld
 
double * m_magPeaks
 
double * m_windowed
 
double * m_magnitude
 
double * m_thetaAngle
 
double * m_unwrapped
 
Window< double > * m_window
 
PhaseVocoderm_phaseVoc
 

Detailed Description

Definition at line 40 of file DetectionFunction.h.

Constructor & Destructor Documentation

◆ DetectionFunction()

DetectionFunction::DetectionFunction ( DFConfig  Config)

◆ ~DetectionFunction()

virtual DetectionFunction::~DetectionFunction ( )
virtual

Member Function Documentation

◆ broadband()

double DetectionFunction::broadband ( unsigned int  length,
double *  srcMagnitude 
)
private

◆ complexSD()

double DetectionFunction::complexSD ( unsigned int  length,
double *  srcMagnitude,
double *  srcPhase 
)
private

◆ deInitialise()

void DetectionFunction::deInitialise ( )
private

◆ getSpectrumMagnitude()

double* DetectionFunction::getSpectrumMagnitude ( )

◆ HFC()

double DetectionFunction::HFC ( unsigned int  length,
double *  src 
)
private

◆ initialise()

void DetectionFunction::initialise ( DFConfig  Config)
private

◆ phaseDev()

double DetectionFunction::phaseDev ( unsigned int  length,
double *  srcPhase 
)
private

◆ processFrequencyDomain()

double DetectionFunction::processFrequencyDomain ( const double *  reals,
const double *  imags 
)

Process a single frequency-domain frame, provided as frameLength/2+1 real and imaginary component values.

◆ processTimeDomain()

double DetectionFunction::processTimeDomain ( const double *  samples)

Process a single time-domain frame of audio, provided as frameLength samples.

◆ runDF()

double DetectionFunction::runDF ( )
private

◆ specDiff()

double DetectionFunction::specDiff ( unsigned int  length,
double *  src 
)
private

◆ whiten()

void DetectionFunction::whiten ( )
private

Member Data Documentation

◆ m_dataLength

unsigned int DetectionFunction::m_dataLength
private

Definition at line 74 of file DetectionFunction.h.

◆ m_dbRise

double DetectionFunction::m_dbRise
private

Definition at line 77 of file DetectionFunction.h.

◆ m_DFType

int DetectionFunction::m_DFType
private

Definition at line 73 of file DetectionFunction.h.

◆ m_halfLength

unsigned int DetectionFunction::m_halfLength
private

Definition at line 75 of file DetectionFunction.h.

◆ m_magHistory

double* DetectionFunction::m_magHistory
private

Definition at line 82 of file DetectionFunction.h.

◆ m_magnitude

double* DetectionFunction::m_magnitude
private

Definition at line 88 of file DetectionFunction.h.

◆ m_magPeaks

double* DetectionFunction::m_magPeaks
private

Definition at line 85 of file DetectionFunction.h.

◆ m_phaseHistory

double* DetectionFunction::m_phaseHistory
private

Definition at line 83 of file DetectionFunction.h.

◆ m_phaseHistoryOld

double* DetectionFunction::m_phaseHistoryOld
private

Definition at line 84 of file DetectionFunction.h.

◆ m_phaseVoc

PhaseVocoder* DetectionFunction::m_phaseVoc
private

Definition at line 93 of file DetectionFunction.h.

◆ m_stepSize

unsigned int DetectionFunction::m_stepSize
private

Definition at line 76 of file DetectionFunction.h.

◆ m_thetaAngle

double* DetectionFunction::m_thetaAngle
private

Definition at line 89 of file DetectionFunction.h.

◆ m_unwrapped

double* DetectionFunction::m_unwrapped
private

Definition at line 90 of file DetectionFunction.h.

◆ m_whiten

bool DetectionFunction::m_whiten
private

Definition at line 78 of file DetectionFunction.h.

◆ m_whitenFloor

double DetectionFunction::m_whitenFloor
private

Definition at line 80 of file DetectionFunction.h.

◆ m_whitenRelaxCoeff

double DetectionFunction::m_whitenRelaxCoeff
private

Definition at line 79 of file DetectionFunction.h.

◆ m_window

Window<double>* DetectionFunction::m_window
private

Definition at line 92 of file DetectionFunction.h.

◆ m_windowed

double* DetectionFunction::m_windowed
private

Definition at line 87 of file DetectionFunction.h.


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