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 39 of file ChordExtractor.hxx.


Member Typedef Documentation

Definition at line 57 of file ChordExtractor.hxx.


Constructor & Destructor Documentation

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

Definition at line 59 of file ChordExtractor.hxx.

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

Member Function Documentation

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

Definition at line 179 of file ChordExtractor.hxx.

const std::string Simac::ChordExtractor::chordEstimation (  )  const [inline]

Definition at line 151 of file ChordExtractor.hxx.

const std::vector<unsigned>& Simac::ChordExtractor::chordIndexes (  )  const [inline]

Definition at line 187 of file ChordExtractor.hxx.

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

Definition at line 139 of file ChordExtractor.hxx.

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

Definition at line 167 of file ChordExtractor.hxx.

void Simac::ChordExtractor::clear (  )  [inline]

Definition at line 191 of file ChordExtractor.hxx.

void Simac::ChordExtractor::closeLastSegment ( CLAM::TData  currentTime  )  [inline]

Definition at line 195 of file ChordExtractor.hxx.

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

Definition at line 95 of file ChordExtractor.hxx.

References Simac::ChordSegmentator::method().

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

Definition at line 88 of file ChordExtractor.hxx.

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

Definition at line 87 of file ChordExtractor.hxx.

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

Definition at line 202 of file ChordExtractor.hxx.

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

Definition at line 116 of file ChordExtractor.hxx.

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

Definition at line 83 of file ChordExtractor.hxx.

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

Definition at line 203 of file ChordExtractor.hxx.

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

Definition at line 93 of file ChordExtractor.hxx.

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

Definition at line 92 of file ChordExtractor.hxx.

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

Definition at line 89 of file ChordExtractor.hxx.

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

Definition at line 201 of file ChordExtractor.hxx.

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

Definition at line 56 of file ChordExtractor.hxx.

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

Definition at line 147 of file ChordExtractor.hxx.

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

Definition at line 171 of file ChordExtractor.hxx.

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

Definition at line 175 of file ChordExtractor.hxx.

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

Definition at line 143 of file ChordExtractor.hxx.

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

Definition at line 204 of file ChordExtractor.hxx.

References Simac::InstantTunningEstimator::output().

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

Definition at line 183 of file ChordExtractor.hxx.

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

Definition at line 90 of file ChordExtractor.hxx.

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

Definition at line 205 of file ChordExtractor.hxx.

References Simac::InstantTunningEstimator::output().

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

Definition at line 199 of file ChordExtractor.hxx.

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

Definition at line 200 of file ChordExtractor.hxx.


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