Versions Compared

Key

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

Overview

Multi-purpose multiplier

Discussion

Multi-purpose multiplier module. For single channel inputs, all of the inputs will be multiplied together. For multichannel inputs, the ONECHANNELOUTPUT argument determines whether all of the channels in each input will be multiplied together (ONECHANNELOUTPUT=1), or whether a given channel in one input will be multiplied by the corresponding channel in another input (ONECHANNELOUTPUT=0). If oneChannelOutput is false and there are only 2 input pins and first input has only 1 channel, then all other channels are multiplied by the first input channel.

Type Definition

Code Block
typedef struct _ModuleMultiplierV2
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 multMode;                               // multMode=0 is a multi-input multiplier, multMode=1 is an AGC multiplier
    INT32 oneChannelOutput;                       // Boolean value that determines whether all channels are multiplied to form a single output.
} ModuleMultiplierV2Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

multMode

int

derived

0

1

Unrestricted

oneChannelOutput

int

const

0

0

Unrestricted

Pins

Input Pins

Name: in1

Description: Audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Audio output

Data type: float

MATLAB Usage

File Name: multiplier_v2_module.m

...