Sum the input rows of observations into one row.
More...
#include <Sum.h>
Inherits Marsyas::MarSystem.
|
Private Member Functions |
| void | myUpdate (MarControlPtr sender) |
Detailed Description
Sum the input rows of observations into one row.
Sum the input rows of observation into one row. Frequently used for mixing audio signals before SoudFileSink or AudioSink.
Controls:
- mrs_real/stereo [w] : sum channels to stereo or mono
- mrs_real/weight [w] : scales input to avoid clipping.
- mrs_string/mode [w] : Sum over observations, samples or the whole realvec
The "mode" string can be set to four different values:
- "orig" -> The original behaviour of Sum, to sum all observations into one observation. In this mode the "stereo" and "weight" flags work as they used to
- "sum_observations" -> Sum up across observations. Add up all the samples in an observation.
- "sum_observations" -> Sum up across samples. Add up all the observations for each sample.
- "sum_whole" -> Sum up all the observations and samples of the realvec into a single number
- Todo:
- Sum mrs_real/weight should be implemented as a meta-composite in marsystemmanager. (? -- lmartins said this)
Definition at line 61 of file Sum.h.
Member Function Documentation
| void myUpdate |
( |
MarControlPtr |
sender |
) |
[private, virtual] |
The documentation for this class was generated from the following files:
- /home/marsyas/marsyas/src/marsyas/Sum.h
- /home/marsyas/marsyas/src/marsyas/Sum.cpp