MultiplexorFadeControl
Discussion
THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE MultiplexorV2 MODULE INSTEAD.
This is a subsystem which implements a controllable multiplexor with crossfading. At construction time the argument NUMINPIN specifies the number of audio input pins that should be switched between. The module then has NUMINPIN+1 input pins. The first input pin "Index" is an integer signal specifying which audio signal should be selected. Index is zero based and in the range [0 NUMINPIN-1]. At the start of each block process, the first sample of Index is loaded and it determines which of the other audio inputs to use. Although Index can have any number of channels and any blockSize, only the first sample value of each block is used; all others are ignored. If Index falls outside of this range they are clipped to the allowable range.
Pins 2 to NUMINPIN+1 are the audio inputs and can contain any number of channels. The module performs a smooth crossfading between channels with a configurable smoothing time.
Internally, the subsystem contains a ParamSet module which controls a multiplexor_fade_module.m.
Module Pack
Deprecated
ClassID
classID =
Type Definition
typedef struct _ModuleMultiplexorFadeControl
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
} ModuleMultiplexorFadeControlClass;
Pins
Input Pins
| Name | index |
| Description | control input |
| Data type | int |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
| Name | in1 |
| Description | Input signal |
| Data type | float |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
| Name | in2 |
| Description | Input signal |
| Data type | float |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
Output Pins
| Name | out |
| Description | Output signal |
| Data Type | float |
Matlab Usage
File Name: multiplexor_fade_control_subsystem.m
SYS=multiplexor_fade_control_subsystem(NAME, NUMINPIN)
Builds on the multiplexor_fade_module.m and adds a control pin for
the .index pin. Arguments:
NAME - name of the module.
NUMINPIN - number of input pins.
Copyright (c) 2026 DSP Concepts, Inc.