Skip to content

MixerFract32

Discussion

THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE MixerV3Fract32 MODULE INSTEAD.

This module implements a fixed point full M-input x N-output mixer with a total of MxN coefficients. The coefficients are contained in the coeffs matrix with the gain from the ith input to the jth output is found at coeffs(i, j). Note, this mixer is not smoothly updating and changes to the gain coefficients may result in audible clicks. Use the mixer_smoothed_module for clickless updates.

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.

Module Pack

Standard

ClassID

classID = 158

Type Definition

typedef struct _ModuleMixerFract32
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
INT32 postShift;                              // Number of bits to shift
FLOAT32* gain;                                // Array of linear gain factors. The size of the array is numIn * numOut.
fract32* gainFract32;                         // Array of linear gain factors in fractional representation. The size of the array is numIn * numOut.
} ModuleMixerFract32Class;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
postShift int derived 1 1 Unrestricted
gain float* parameter 0 [1 x 2] -60:20
gainFract32 fract32* derived 0 [1 x 2] Unrestricted

Pins

Input Pins

Name in
Description audio input
Data type fract32
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real

Output Pins

Name out
Description audio output
Data Type fract32

Matlab Usage

File Name: mixer_fract32_module.m 
 M=mixer_fract32_module(NAME, NUMOUT) 
 Creates a multichannel mixer module for use in Audio Weaver. 
 The mixer has one input and one output pin.  Each of these pins can 
 contain multiple interleaved channels.  The number of input channels is 
 determined by the upstream audio module.  However, you must specify the 
 number of output channels at construction time.  Arguments: 
   NAME - name of the module. 
   NUMOUT - number of output channels. 

Copyright (c) 2026 DSP Concepts, Inc.