Mixxx

Simac::ChordExtractor Class Reference

#include <ChordExtractor.hxx>

Collaboration diagram for Simac::ChordExtractor:

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


Member Typedef Documentation

Definition at line 73 of file ChordExtractor.hxx.


Constructor & Destructor Documentation

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

Definition at line 75 of file ChordExtractor.hxx.

Here is the call graph for this function:

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

Definition at line 94 of file ChordExtractor.hxx.

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 195 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 167 of file ChordExtractor.hxx.

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

Definition at line 203 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 155 of file ChordExtractor.hxx.

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

Definition at line 183 of file ChordExtractor.hxx.

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

Definition at line 207 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 211 of file ChordExtractor.hxx.

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

Definition at line 111 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 104 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 103 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 218 of file ChordExtractor.hxx.

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

Definition at line 132 of file ChordExtractor.hxx.

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

Definition at line 99 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 219 of file ChordExtractor.hxx.

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

Definition at line 109 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 108 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 105 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 217 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 72 of file ChordExtractor.hxx.

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

Definition at line 163 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 187 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 191 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 159 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 220 of file ChordExtractor.hxx.

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

Definition at line 199 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 106 of file ChordExtractor.hxx.

Here is the caller graph for this function:

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

Definition at line 221 of file ChordExtractor.hxx.

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

Definition at line 215 of file ChordExtractor.hxx.

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

Definition at line 216 of file ChordExtractor.hxx.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines