Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

M-input x N-output mixer

Discussion

The mixer module takes multiple input signals, and "mixes" them down to provide one or more output signals

...

When the module is bypassed, it copies the ith input channel to the ith output channel. If the module has more output channels than input channels, the remaining output channels are set to 0.

Type Definition

Code Block
typedef struct _ModuleMixerV3
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 maxNonZero;                             // Maximum number of non zero coefficients.
    INT32 numIn;                                  // Number of input channels.
    FLOAT32* gain;                                // Linear gain.
    FLOAT32* nonZeroGain;                         // Instanteous gain being applied.
    SparseItem * table;                           // Internal data holding data for quick processing
} ModuleMixerV3Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

maxNonZero

int

const

1

2

Unrestricted

numIn

int

derived

1

1

Unrestricted

gain

float*

parameter

0

[1 x 2]

-60:20

nonZeroGain

float*

state

1

[8 x 1]

Unrestricted

table

SparseItem *

parameter

1

Unrestricted

Pins

Input Pins

Name: in1

Description: Input signal

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: float

MATLAB Usage

File Name: mixer_v3_module.m

...