CLAM-Development  1.4.0
Public Types | Public Member Functions | Static Public Member Functions
Simac::ChordExtractor Class Reference

#include <ChordExtractor.hxx>

List of all members.

Public Types

typedef float * AudioFrame

Public Member Functions

 ChordExtractor (unsigned sampleRate=44100, double minimumFrequency=98, unsigned binsPerOctave=36)
 ~ChordExtractor ()
void filterInertia (double inertia)
void enableTunning (bool tunningEnabled=true)
void enablePeakWindowing (bool peakWindowingEnabled=true)
void hopRatio (double hopRatio)
void segmentationMethod (double segmentationMethod)
unsigned hop () const
unsigned frameSize () const
void doIt (const AudioFrame &input, CLAM::TData &currentTime)
void estimateChord (const ChordCorrelator::ChordCorrelation &correlation)
std::string chordRepresentation (unsigned chordIndex) const
std::string root (unsigned chordIndex) const
std::string mode (unsigned chordIndex) const
const std::string chordEstimation () const
const std::vector< double > & chromagram () const
const std::vector< double > & pcp () const
const std::vector< std::pair
< double, double > > & 
peaks () const
const std::vector< double > & chordCorrelation () const
const
CLAM::DiscontinuousSegmentation
segmentation () const
const std::vector< unsigned > & chordIndexes () const
void clear ()
void closeLastSegment (CLAM::TData currentTime)
double tunning () const
double tunningStrength () const
std::pair< double, double > instantTunning () const
double energy () const
unsigned firstCandidate () const
unsigned secondCandidate () const
std::vector< double > spectrum () const

Static Public Member Functions

static double maximumFrequency (double sampleRate)

Detailed Description

Definition at line 41 of file ChordExtractor.hxx.


Member Typedef Documentation

Definition at line 62 of file ChordExtractor.hxx.


Constructor & Destructor Documentation

Simac::ChordExtractor::ChordExtractor ( unsigned  sampleRate = 44100,
double  minimumFrequency = 98,
unsigned  binsPerOctave = 36 
)
inline
Simac::ChordExtractor::~ChordExtractor ( )
inline

Definition at line 83 of file ChordExtractor.hxx.


Member Function Documentation

const std::vector<double>& Simac::ChordExtractor::chordCorrelation ( ) const
inline

Definition at line 184 of file ChordExtractor.hxx.

References Simac::ChordCorrelator::output().

Referenced by CLAM::TonalAnalysis::Do().

const std::string Simac::ChordExtractor::chordEstimation ( ) const
inline
const std::vector<unsigned>& Simac::ChordExtractor::chordIndexes ( ) const
inline

Definition at line 192 of file ChordExtractor.hxx.

References Simac::ChordSegmentator::chordIndexes().

Referenced by CLAM::TonalAnalysis::Do().

std::string Simac::ChordExtractor::chordRepresentation ( unsigned  chordIndex) const
inline

Definition at line 144 of file ChordExtractor.hxx.

References Simac::ChordCorrelator::chordRepresentation().

const std::vector<double>& Simac::ChordExtractor::chromagram ( ) const
inline

Definition at line 172 of file ChordExtractor.hxx.

References Simac::ConstantQFolder::chromagram().

void Simac::ChordExtractor::clear ( )
inline
void Simac::ChordExtractor::closeLastSegment ( CLAM::TData  currentTime)
inline

Definition at line 200 of file ChordExtractor.hxx.

References Simac::ChordSegmentator::closeLastSegment().

void Simac::ChordExtractor::doIt ( const AudioFrame input,
CLAM::TData currentTime 
)
inline
void Simac::ChordExtractor::enablePeakWindowing ( bool  peakWindowingEnabled = true)
inline

Definition at line 93 of file ChordExtractor.hxx.

Referenced by CLAM::TonalAnalysis::ConcreteConfigure().

void Simac::ChordExtractor::enableTunning ( bool  tunningEnabled = true)
inline

Definition at line 92 of file ChordExtractor.hxx.

Referenced by CLAM::TonalAnalysis::ConcreteConfigure().

double Simac::ChordExtractor::energy ( ) const
inline

Definition at line 207 of file ChordExtractor.hxx.

void Simac::ChordExtractor::estimateChord ( const ChordCorrelator::ChordCorrelation correlation)
inline

Definition at line 121 of file ChordExtractor.hxx.

Referenced by doIt().

void Simac::ChordExtractor::filterInertia ( double  inertia)
inline

Definition at line 88 of file ChordExtractor.hxx.

References Simac::PCPSmother::inertia().

Referenced by CLAM::TonalAnalysis::ConcreteConfigure().

unsigned Simac::ChordExtractor::firstCandidate ( ) const
inline

Definition at line 208 of file ChordExtractor.hxx.

unsigned Simac::ChordExtractor::frameSize ( ) const
inline
unsigned Simac::ChordExtractor::hop ( ) const
inline
void Simac::ChordExtractor::hopRatio ( double  hopRatio)
inline

Definition at line 94 of file ChordExtractor.hxx.

References hopRatio().

Referenced by CLAM::TonalAnalysis::ConcreteConfigure(), and hopRatio().

std::pair<double,double> Simac::ChordExtractor::instantTunning ( ) const
inline
static double Simac::ChordExtractor::maximumFrequency ( double  sampleRate)
inlinestatic

Definition at line 61 of file ChordExtractor.hxx.

std::string Simac::ChordExtractor::mode ( unsigned  chordIndex) const
inline

Definition at line 152 of file ChordExtractor.hxx.

References Simac::ChordCorrelator::mode().

Referenced by CLAM::TonalAnalysis::Do().

const std::vector<double>& Simac::ChordExtractor::pcp ( ) const
inline

Definition at line 176 of file ChordExtractor.hxx.

References Simac::CircularPeaksToPCP::output().

Referenced by CLAM::TonalAnalysis::Do().

const std::vector<std::pair<double, double> >& Simac::ChordExtractor::peaks ( ) const
inline

Definition at line 180 of file ChordExtractor.hxx.

References Simac::CircularPeakPicking::output().

Referenced by CLAM::TonalAnalysis::Do().

std::string Simac::ChordExtractor::root ( unsigned  chordIndex) const
inline

Definition at line 148 of file ChordExtractor.hxx.

References Simac::ChordCorrelator::root().

Referenced by CLAM::TonalAnalysis::Do().

unsigned Simac::ChordExtractor::secondCandidate ( ) const
inline

Definition at line 209 of file ChordExtractor.hxx.

const CLAM::DiscontinuousSegmentation& Simac::ChordExtractor::segmentation ( ) const
inline

Definition at line 188 of file ChordExtractor.hxx.

References Simac::ChordSegmentator::segmentation().

Referenced by CLAM::TonalAnalysis::Do().

void Simac::ChordExtractor::segmentationMethod ( double  segmentationMethod)
inline
std::vector<double> Simac::ChordExtractor::spectrum ( ) const
inline

Definition at line 210 of file ChordExtractor.hxx.

References FourierTransform::spectrum().

double Simac::ChordExtractor::tunning ( ) const
inline

Definition at line 204 of file ChordExtractor.hxx.

References Simac::InstantTunningEstimator::output().

double Simac::ChordExtractor::tunningStrength ( ) const
inline

Definition at line 205 of file ChordExtractor.hxx.

References Simac::InstantTunningEstimator::output().


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