Marsyas  0.5.0-beta1
Public Member Functions
PitchDiff Class Reference

Difference between detected and expected pitch. More...

#include <PitchDiff.h>

Inherits 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 (std::string name)
 PitchDiff constructor.
 PitchDiff (const PitchDiff &a)
 PitchDiff copy constructor.
 ~PitchDiff ()
 PitchDiff destructor.

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 43 of file PitchDiff.h.


Constructor & Destructor Documentation

PitchDiff ( std::string  name)

PitchDiff constructor.

Add any specific controls needed by this MarSystem.

Definition at line 25 of file PitchDiff.cpp.

PitchDiff ( const PitchDiff a)

PitchDiff copy constructor.

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

Definition at line 31 of file PitchDiff.cpp.

~PitchDiff ( )

PitchDiff destructor.

Definition at line 41 of file PitchDiff.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implementation of the MarSystem::clone() method.

Implements MarSystem.

Definition at line 46 of file PitchDiff.cpp.

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 78 of file PitchDiff.cpp.


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