Public Member Functions

 D (float inputSampleRate)
 
 ~D ()
 
size_t getPreferredStepSize () const
 
size_t getPreferredBlockSize () const
 
ParameterList getParameterDescriptors () const
 
float getParameter (string id) const
 
void setParameter (string id, float value)
 
OutputList getOutputDescriptors () const
 
bool initialise (size_t channels, size_t stepSize, size_t blockSize)
 
void reset ()
 
FeatureSet process (const float *const *, RealTime)
 
FeatureSet getRemainingFeatures ()
 

Private Member Functions

void calculate ()
 
FeatureSet assembleFeatures ()
 
float lag2tempo (int)
 
int tempo2lag (float)
 

Private Attributes

float m_inputSampleRate
 
size_t m_stepSize
 
size_t m_blockSize
 
float m_minbpm
 
float m_maxbpm
 
float m_maxdflen
 
float * m_priorMagnitudes
 
size_t m_dfsize
 
float * m_df
 
float * m_r
 
float * m_fr
 
float * m_t
 
size_t m_n
 
Vamp::RealTime m_start
 
Vamp::RealTime m_lasttime
 

Detailed Description

Definition at line 50 of file FixedTempoEstimator.cpp.

Constructor & Destructor Documentation

FixedTempoEstimator::D::D ( float  inputSampleRate)

Definition at line 99 of file FixedTempoEstimator.cpp.

FixedTempoEstimator::D::~D ( )

Definition at line 115 of file FixedTempoEstimator.cpp.

References m_df, m_fr, m_priorMagnitudes, m_r, and m_t.

Member Function Documentation

size_t FixedTempoEstimator::D::getPreferredStepSize ( ) const
inline

Definition at line 57 of file FixedTempoEstimator.cpp.

Referenced by FixedTempoEstimator::getPreferredStepSize().

float FixedTempoEstimator::D::getParameter ( string  id) const

Definition at line 159 of file FixedTempoEstimator.cpp.

References m_maxbpm, m_maxdflen, and m_minbpm.

Referenced by FixedTempoEstimator::getParameter(), and getPreferredBlockSize().

void FixedTempoEstimator::D::setParameter ( string  id,
float  value 
)

Definition at line 172 of file FixedTempoEstimator.cpp.

References m_maxbpm, m_maxdflen, and m_minbpm.

Referenced by getPreferredBlockSize(), and FixedTempoEstimator::setParameter().

bool FixedTempoEstimator::D::initialise ( size_t  channels,
size_t  stepSize,
size_t  blockSize 
)
void FixedTempoEstimator::D::reset ( )
FixedTempoEstimator::FeatureSet FixedTempoEstimator::D::process ( const float *const *  inputBuffers,
RealTime  ts 
)
FixedTempoEstimator::FeatureSet FixedTempoEstimator::D::getRemainingFeatures ( )
void FixedTempoEstimator::D::calculate ( )
private
float FixedTempoEstimator::D::lag2tempo ( int  lag)
private

Definition at line 363 of file FixedTempoEstimator.cpp.

References m_inputSampleRate, and m_stepSize.

Referenced by assembleFeatures(), calculate(), and getPreferredBlockSize().

int FixedTempoEstimator::D::tempo2lag ( float  tempo)
private

Definition at line 369 of file FixedTempoEstimator.cpp.

References m_inputSampleRate, and m_stepSize.

Referenced by assembleFeatures(), and getPreferredBlockSize().

Member Data Documentation

float FixedTempoEstimator::D::m_inputSampleRate
private
size_t FixedTempoEstimator::D::m_stepSize
private
size_t FixedTempoEstimator::D::m_blockSize
private

Definition at line 80 of file FixedTempoEstimator.cpp.

Referenced by initialise(), process(), and reset().

float FixedTempoEstimator::D::m_minbpm
private

Definition at line 82 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), getParameter(), and setParameter().

float FixedTempoEstimator::D::m_maxbpm
private

Definition at line 83 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), getParameter(), and setParameter().

float FixedTempoEstimator::D::m_maxdflen
private

Definition at line 84 of file FixedTempoEstimator.cpp.

Referenced by getParameter(), initialise(), and setParameter().

float* FixedTempoEstimator::D::m_priorMagnitudes
private

Definition at line 86 of file FixedTempoEstimator.cpp.

Referenced by initialise(), process(), reset(), and ~D().

size_t FixedTempoEstimator::D::m_dfsize
private

Definition at line 88 of file FixedTempoEstimator.cpp.

Referenced by calculate(), getRemainingFeatures(), initialise(), process(), and reset().

float* FixedTempoEstimator::D::m_df
private

Definition at line 89 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), calculate(), initialise(), process(), reset(), and ~D().

float* FixedTempoEstimator::D::m_r
private

Definition at line 90 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), calculate(), reset(), and ~D().

float* FixedTempoEstimator::D::m_fr
private

Definition at line 91 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), calculate(), reset(), and ~D().

float* FixedTempoEstimator::D::m_t
private

Definition at line 92 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), calculate(), reset(), and ~D().

size_t FixedTempoEstimator::D::m_n
private
Vamp::RealTime FixedTempoEstimator::D::m_start
private

Definition at line 95 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), process(), and reset().

Vamp::RealTime FixedTempoEstimator::D::m_lasttime
private

Definition at line 96 of file FixedTempoEstimator.cpp.

Referenced by assembleFeatures(), process(), and reset().


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