Simac::CircularPeaksToPCP Class Reference

This processing constructs a PCP doing the weighted histogram of the energy of a set of circular chromatic peaks. More...

#include <CircularPeaksToPCP.hxx>

List of all members.

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 PCPoutput () const

Static Public Member Functions

static double windowedValue (double position, double value)

Detailed Description

This processing constructs a PCP doing the weighted histogram of the energy of a set of circular chromatic peaks.

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.


Member Typedef Documentation

typedef std::vector<double> Simac::CircularPeaksToPCP::PCP

Definition at line 43 of file CircularPeaksToPCP.hxx.

typedef std::vector<std::pair<double, double> > Simac::CircularPeaksToPCP::PeakList

Definition at line 42 of file CircularPeaksToPCP.hxx.


Constructor & Destructor Documentation

Simac::CircularPeaksToPCP::CircularPeaksToPCP (  )  [inline]

Definition at line 49 of file CircularPeaksToPCP.hxx.

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

Definition at line 54 of file CircularPeaksToPCP.hxx.


Member Function Documentation

void Simac::CircularPeaksToPCP::activateWindowing (  )  [inline]

Definition at line 57 of file CircularPeaksToPCP.hxx.

Referenced by Simac::ChordExtractor::~ChordExtractor().

void Simac::CircularPeaksToPCP::doIt ( const PeakList peaks  )  [inline]

Definition at line 65 of file CircularPeaksToPCP.hxx.

References windowedValue().

const PCP& Simac::CircularPeaksToPCP::output (  )  const [inline]

Definition at line 81 of file CircularPeaksToPCP.hxx.

static double Simac::CircularPeaksToPCP::windowedValue ( double  position,
double  value 
) [inline, static]

Definition at line 61 of file CircularPeaksToPCP.hxx.

Referenced by doIt().


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