MixToMono Class Reference
[Processing]

Mix the input channels (observations rows) into one output observation channel. More...

#include <MixToMono.h>

Inherits Marsyas::MarSystem.


Public Member Functions

MarSystemclone () 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.


Detailed Description

Mix the input channels (observations rows) into one output observation channel.

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.

See also:
Sum.
This MarSystem has no extra controls.

Definition at line 43 of file MixToMono.h.


Member Function Documentation

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_.


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