#include <MixerMatrix.h>
Definition at line 31 of file MixerMatrix.h.
◆ MixerMatrix()
Kwave::MixerMatrix::MixerMatrix |
( |
unsigned int |
inputs, |
|
|
unsigned int |
outputs |
|
) |
| |
Constructor
- Parameters
-
inputs | number of inputs |
outputs | number of outputs |
Definition at line 24 of file MixerMatrix.cpp.
27 for (
unsigned int y = 0; y < outputs; y++) {
31 m2 = (y + 1) * inputs;
33 for (
unsigned int x = 0; x < inputs; x++) {
39 unsigned int l = (n1 > m1) ? n1 : m1;
40 unsigned int r = (n2 < m2) ? n2 : m2;
42 (*this)[x][y] = (r > l) ? static_cast<double>(r - l) /
43 static_cast<double>(inputs) : 0.0;
◆ ~MixerMatrix()
Kwave::MixerMatrix::~MixerMatrix |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: