Simac::ChordExtractor Class Reference

#include <ChordExtractor.hxx>

List of all members.


Detailed Description

Definition at line 41 of file ChordExtractor.hxx.


Public Types

typedef floatAudioFrame

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)

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

static double Simac::ChordExtractor::maximumFrequency ( double  sampleRate  )  [inline, static]

Definition at line 61 of file ChordExtractor.hxx.

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

Definition at line 88 of file ChordExtractor.hxx.

References Simac::PCPSmother::inertia().

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().

void Simac::ChordExtractor::enablePeakWindowing ( bool  peakWindowingEnabled = true  )  [inline]

Definition at line 93 of file ChordExtractor.hxx.

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

void Simac::ChordExtractor::hopRatio ( double  hopRatio  )  [inline]

Definition at line 94 of file ChordExtractor.hxx.

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

void Simac::ChordExtractor::segmentationMethod ( double  segmentationMethod  )  [inline]

unsigned Simac::ChordExtractor::hop (  )  const [inline]

unsigned Simac::ChordExtractor::frameSize (  )  const [inline]

void Simac::ChordExtractor::doIt ( const AudioFrame input,
CLAM::TData currentTime 
) [inline]

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

Definition at line 121 of file ChordExtractor.hxx.

Referenced by doIt().

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

Definition at line 144 of file ChordExtractor.hxx.

References Simac::ChordCorrelator::chordRepresentation().

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().

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::string Simac::ChordExtractor::chordEstimation (  )  const [inline]

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

Definition at line 172 of file ChordExtractor.hxx.

References Simac::ConstantQFolder::chromagram().

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().

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 CLAM::DiscontinuousSegmentation& Simac::ChordExtractor::segmentation (  )  const [inline]

Definition at line 188 of file ChordExtractor.hxx.

References Simac::ChordSegmentator::segmentation().

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

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().

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().

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().

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

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

Definition at line 207 of file ChordExtractor.hxx.

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

Definition at line 208 of file ChordExtractor.hxx.

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

Definition at line 209 of file ChordExtractor.hxx.

std::vector<double> Simac::ChordExtractor::spectrum (  )  const [inline]

Definition at line 210 of file ChordExtractor.hxx.

References FourierTransform::spectrum().


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

Generated on Tue Aug 12 22:33:51 2008 for CLAM by  doxygen 1.5.5