PitchDiff Class Reference
[Analysis]

Difference between detected and expected pitch. More...

#include <PitchDiff.h>

Inherits Marsyas::MarSystem.


Public Member Functions

MarSystemclone () const
 Implementation of the MarSystem::clone() method.
void myProcess (realvec &in, realvec &out)
 Implementation of the MarSystem::myProcess method.
 PitchDiff (const PitchDiff &a)
 PitchDiff copy constructor.
 PitchDiff (std::string name)
 PitchDiff constructor.
 ~PitchDiff ()
 PitchDiff destructor.

Private Member Functions

void addControls ()
 Add specific controls needed by this MarSystem.
void myUpdate (MarControlPtr sender)
 Reads changed controls and sets up variables if necessary.


Detailed Description

Difference between detected and expected pitch.

Place this in a series after Yin (or any other pitch-detection MarSystem), and feed it the expected pitch as a control. Outputs the difference as a midi pitch value.

Controls:

Definition at line 44 of file PitchDiff.h.


Constructor & Destructor Documentation

PitchDiff ( std::string  name  ) 

PitchDiff constructor.

Add any specific controls needed by this MarSystem.

Definition at line 24 of file PitchDiff.cpp.

References PitchDiff::addControls().

Referenced by PitchDiff::clone().

PitchDiff ( const PitchDiff a  ) 

PitchDiff copy constructor.

All member MarControlPtr have to be explicitly reassigned in the copy constructor.

Definition at line 30 of file PitchDiff.cpp.


Member Function Documentation

void addControls (  )  [private]

Add specific controls needed by this MarSystem.

Add any specific controls needed by this MarSystem.

Reimplemented from MarSystem.

Definition at line 51 of file PitchDiff.cpp.

Referenced by PitchDiff::PitchDiff().

void myProcess ( realvec in,
realvec out 
) [virtual]

Implementation of the MarSystem::myProcess method.

Iterate over the observations and samples and do the processing.

Implements MarSystem.

Definition at line 77 of file PitchDiff.cpp.

void myUpdate ( MarControlPtr  sender  )  [private, virtual]

Reads changed controls and sets up variables if necessary.

Use the default MarSystem setup with equal input/output stream format.

Reimplemented from MarSystem.

Definition at line 61 of file PitchDiff.cpp.

References Marsyas::obsNamesAddPrefix().


The documentation for this class was generated from the following files:

Generated on Wed May 23 00:02:23 2012 for Marsyas by  doxygen 1.5.6