SubtractFract32
Overview
Subtracts the last Fract32 input from all other Fract32 inputs
Discussion
Subtracts the last input from all other inputs. With an N-pin input, the output will be N-1 pins, and the Nth input will have been subtracted from all other inputs. The number of channels in the input channels needs to be identical in order for the module to properly work.
Module Pack
Standard
ClassID
classID = 202
Type Definition
typedef struct _ModuleSubtractFract32
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
} ModuleSubtractFract32Class;
Pins
Input Pins
| Name | in1 |
| Description | Audio input |
| Data type | fract32 |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
| Name | in2 |
| Description | Audio input |
| Data type | fract32 |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
Output Pins
| Name | out1 |
| Description | Audio output |
| Data Type | fract32 |
Matlab Usage
File Name: subtract_fract32_module.m
M=subtract_fract32_module(NAME, NUMIN)
Creates a multi-input subtract module for use in the Audio Weaver
environment. Arguments:
NAME - name of the module.
NUMIN - number of input pins
Copyright (c) 2026 DSP Concepts, Inc.