Simac::InstantTunningEstimator Class Reference

This processing estimates the most probable tunning of a set of chromatic peaks. More...

#include <InstantTunningEstimator.hxx>

List of all members.

Public Types

typedef std::vector< std::pair
< double, double > > 
PeakList

Public Member Functions

 InstantTunningEstimator (double inertia=0.0)
 ~InstantTunningEstimator ()
void setInertia (double inertia)
void doIt (const std::vector< std::pair< double, double > > &peaks)
std::pair< double, double > output () const
std::pair< double, double > instantTunning () const

Detailed Description

This processing estimates the most probable tunning of a set of chromatic peaks.

It does it by mapping the chromatic peaks as fasors in a semitone wheel and vectorially adding them. The inertia sets how much of the previous computed value it kept for the next execution. The instantTunning output doesn't take into account the inertia.

Todo:
Explain which are the reference values the tunning is expressed relative to.

Definition at line 40 of file InstantTunningEstimator.hxx.


Member Typedef Documentation

typedef std::vector<std::pair<double, double> > Simac::InstantTunningEstimator::PeakList

Definition at line 43 of file InstantTunningEstimator.hxx.


Constructor & Destructor Documentation

Simac::InstantTunningEstimator::InstantTunningEstimator ( double  inertia = 0.0  )  [inline]

Definition at line 51 of file InstantTunningEstimator.hxx.

Simac::InstantTunningEstimator::~InstantTunningEstimator (  )  [inline]

Definition at line 57 of file InstantTunningEstimator.hxx.


Member Function Documentation

void Simac::InstantTunningEstimator::doIt ( const std::vector< std::pair< double, double > > &  peaks  )  [inline]

Definition at line 65 of file InstantTunningEstimator.hxx.

std::pair<double,double> Simac::InstantTunningEstimator::instantTunning (  )  const [inline]

Definition at line 86 of file InstantTunningEstimator.hxx.

std::pair<double,double> Simac::InstantTunningEstimator::output (  )  const [inline]
void Simac::InstantTunningEstimator::setInertia ( double  inertia  )  [inline]

Definition at line 60 of file InstantTunningEstimator.hxx.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3