#include <ChordExtractor.hxx>
Definition at line 41 of file ChordExtractor.hxx.
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 ¤tTime) |
| 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) |
| typedef float* Simac::ChordExtractor::AudioFrame |
Definition at line 62 of file ChordExtractor.hxx.
| Simac::ChordExtractor::ChordExtractor | ( | unsigned | sampleRate = 44100, |
|
| double | minimumFrequency = 98, |
|||
| unsigned | binsPerOctave = 36 | |||
| ) | [inline] |
Definition at line 64 of file ChordExtractor.hxx.
References Simac::CircularPeaksToPCP::activateWindowing(), and Simac::ConstantQTransform::sparsekernel().
| Simac::ChordExtractor::~ChordExtractor | ( | ) | [inline] |
Definition at line 83 of file ChordExtractor.hxx.
| 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] |
Definition at line 95 of file ChordExtractor.hxx.
References Simac::ChordSegmentator::method().
Referenced by CLAM::TonalAnalysis::ConcreteConfigure().
| unsigned Simac::ChordExtractor::hop | ( | ) | const [inline] |
Definition at line 97 of file ChordExtractor.hxx.
References Simac::ConstantQTransform::getfftlength().
Referenced by CLAM::TonalAnalysis::ConcreteConfigure(), and CLAM::TonalAnalysis::Do().
| unsigned Simac::ChordExtractor::frameSize | ( | ) | const [inline] |
Definition at line 98 of file ChordExtractor.hxx.
References Simac::ConstantQTransform::getfftlength().
Referenced by CLAM::TonalAnalysis::ConcreteConfigure(), CLAM::TonalAnalysis::Do(), and doIt().
| void Simac::ChordExtractor::doIt | ( | const AudioFrame & | input, | |
| CLAM::TData & | currentTime | |||
| ) | [inline] |
Definition at line 100 of file ChordExtractor.hxx.
References Simac::ConstantQFolder::chromagram(), Simac::ConstantQTransform::constantQSpectrum(), Simac::ChordSegmentator::doIt(), Simac::ChordCorrelator::doIt(), Simac::PCPSmother::doIt(), Simac::CircularPeaksToPCP::doIt(), Simac::CircularPeakTunner::doIt(), Simac::InstantTunningEstimator::doIt(), Simac::CircularPeakPicking::doIt(), Simac::ConstantQFolder::doIt(), Simac::ConstantQTransform::doIt(), FourierTransform::doIt(), estimateChord(), frameSize(), Simac::ChordCorrelator::output(), Simac::PCPSmother::output(), Simac::CircularPeaksToPCP::output(), Simac::CircularPeakTunner::output(), Simac::InstantTunningEstimator::output(), Simac::CircularPeakPicking::output(), and FourierTransform::spectrum().
Referenced by CLAM::TonalAnalysis::Do().
| void Simac::ChordExtractor::estimateChord | ( | const ChordCorrelator::ChordCorrelation & | correlation | ) | [inline] |
| 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] |
Definition at line 156 of file ChordExtractor.hxx.
References Simac::ChordCorrelator::chordRepresentation(), and Simac::ChordCorrelator::output().
| const std::vector<double>& Simac::ChordExtractor::chromagram | ( | ) | const [inline] |
| 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] |
Definition at line 196 of file ChordExtractor.hxx.
References Simac::ChordSegmentator::eraseAllSegments().
Referenced by CLAM::TonalAnalysis::ConcreteStop().
| 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] |
Definition at line 206 of file ChordExtractor.hxx.
References Simac::InstantTunningEstimator::instantTunning().
Referenced by CLAM::TonalAnalysis::Do().
| 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] |
1.5.5