#include <PitchDiff.h>
Inherits Marsyas::MarSystem.
Public Member Functions | |
| MarSystem * | clone () 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. | |
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.
| 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 copy constructor.
All member MarControlPtr have to be explicitly reassigned in the copy constructor.
Definition at line 30 of file PitchDiff.cpp.
| 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().
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().
1.5.6