#include <CircularPeaksToPCP.hxx>
It sums the energy of each peak to the corresponding pitch. If windowing is activated by calling activateWindowing(), then peaks on the center of the pitch get more relevance while peaks in between the center of two pitch are attenuated.
Definition at line 39 of file CircularPeaksToPCP.hxx.
Public Types | |
typedef std::vector< std::pair < double, double > > | PeakList |
typedef std::vector< double > | PCP |
Public Member Functions | |
CircularPeaksToPCP () | |
~CircularPeaksToPCP () | |
void | activateWindowing () |
void | doIt (const PeakList &peaks) |
const PCP & | output () const |
Static Public Member Functions | |
static double | windowedValue (double position, double value) |
typedef std::vector<std::pair<double, double> > Simac::CircularPeaksToPCP::PeakList |
Definition at line 42 of file CircularPeaksToPCP.hxx.
typedef std::vector<double> Simac::CircularPeaksToPCP::PCP |
Definition at line 43 of file CircularPeaksToPCP.hxx.
Simac::CircularPeaksToPCP::CircularPeaksToPCP | ( | ) | [inline] |
Definition at line 49 of file CircularPeaksToPCP.hxx.
Simac::CircularPeaksToPCP::~CircularPeaksToPCP | ( | ) | [inline] |
Definition at line 54 of file CircularPeaksToPCP.hxx.
void Simac::CircularPeaksToPCP::activateWindowing | ( | ) | [inline] |
Definition at line 57 of file CircularPeaksToPCP.hxx.
Referenced by Simac::ChordExtractor::ChordExtractor().
static double Simac::CircularPeaksToPCP::windowedValue | ( | double | position, | |
double | value | |||
) | [inline, static] |
void Simac::CircularPeaksToPCP::doIt | ( | const PeakList & | peaks | ) | [inline] |
Definition at line 65 of file CircularPeaksToPCP.hxx.
References windowedValue().
Referenced by Simac::ChordExtractor::doIt().
const PCP& Simac::CircularPeaksToPCP::output | ( | ) | const [inline] |
Definition at line 81 of file CircularPeaksToPCP.hxx.
Referenced by Simac::ChordExtractor::doIt(), and Simac::ChordExtractor::pcp().