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.
...
Note that if we cascade 2 of these modules then outputs of 2nd module are equal to inputs of first module scaled by 0.5
Type Definition
Code Block |
---|
typedef struct _ModuleSumDiff { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleSumDiffClass; |
Pins
Input Pins
Name: in1
Description: Audio input
...
Complex support: Real and Complex
Output Pins
Name: out1
Description: Audio output
...
Description: Audio output
Data type: float
MATLAB Usage
File Name: sum_diff_module.m
...