#include <MixToMono.h>
Inherits Marsyas::MarSystem.
Public Member Functions | |
| MarSystem * | clone () const |
| Implementation of the MarSystem::clone() method. | |
| MixToMono (const MixToMono &a) | |
| MixToMono copy constructor. | |
| MixToMono (std::string name) | |
| MixToMono constructor. | |
| void | myProcess (realvec &in, realvec &out) |
| Implementation of the MarSystem::myProcess method. | |
| ~MixToMono () | |
| MixToMono 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. | |
Private Attributes | |
| mrs_real | weight_ |
| The weight factor to use during averaging. | |
This MarSystem averages its input channels (the different observation rows of a slice) to a single output channel. The weights for the averaging are determined automatically based on the number of input channels, so it works intuitively for mono, stereo or input with more channels.
Definition at line 43 of file MixToMono.h.
| void myUpdate | ( | MarControlPtr | sender | ) | [private, virtual] |
Reads changed controls and sets up variables if necessary.
... but set the number of output observations to one.
Reimplemented from MarSystem.
Definition at line 47 of file MixToMono.cpp.
References MixToMono::weight_.
1.5.6