Versions Compared

Key

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

Overview

Computes the sum and difference of two signals

Discussion

This module has 2 input pins and 2 output pins. Input pins must have same block size, number of channels, and sample rate. Output pins have same block size, number of channels, and sample rate as input pins. Output1 = (Input1+Input2)/2 Output2 = (Input1-Input2)/2. Note that if we cascade 2 of these modules then outputs of 2nd module are equal to inputs of first module.

Type Definition

Code Block
typedef struct _ModuleSumDiffInt32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleSumDiffInt32Class;

Pins

Input Pins

Name: in1

Description: Audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out1

Description: Audio output

...

Description: Audio output

Data type: int

MATLAB Usage

File Name: sum_diff_int_module.m

...