Combinator Class Reference
[Processing]

Basic example on how to use controls efficiently in MarSystems. More...

#include <Combinator.h>

Inherits Marsyas::MarSystem.


Public Member Functions

MarSystemclone () const
 Implementation of the MarSystem::clone() method.
 Combinator (const Combinator &a)
 Combinator copy constructor.
 Combinator (std::string name)
 Combinator constructor.
void myProcess (realvec &in, realvec &out)
 Implementation of the MarSystem::myProcess method.
 ~Combinator ()
 Combinator 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

MarControlPtr ctrl_weights_
 MarControlPtr for the gain control.


Detailed Description

Basic example on how to use controls efficiently in MarSystems.

This example is the same as Gain; it scales the output by multiplying each sample with a real number.

Controls:

Definition at line 40 of file Combinator.h.


Constructor & Destructor Documentation

Combinator ( std::string  name  ) 

Combinator constructor.

Add any specific controls needed by this MarSystem.

Definition at line 49 of file Combinator.cpp.

References Combinator::addControls().

Referenced by Combinator::clone().

Combinator ( const Combinator a  ) 

Combinator copy constructor.

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

Definition at line 60 of file Combinator.cpp.

References Combinator::ctrl_weights_.


Member Function Documentation

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

Implementation of the MarSystem::myProcess method.

Iterate over the observations and samples and do the combination.

Implements MarSystem.

Definition at line 114 of file Combinator.cpp.

References Combinator::ctrl_weights_, and realvec::setval().

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 97 of file Combinator.cpp.

References MarSystem::updControl().


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