Skip to content

DeMultiplexor

Discussion

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

This module has a variable number of output pins, and the input is routed (or copied) to one of the ouput pins. Each output pin must have the same number of channels and block size. The parameter index specifies which output pin the input has to be routed. The parameter, index is zero based and must lie in the range of [0 NUMOUTPIN-1], where NUMOUTPIN is the number of output pins. If index is outside of the allowable range, it is clipped so that it lies in the proper range.

Note, this version has no built in smoothing and you may get an audible discontinuity when changing the index variable.

Module Pack

Deprecated

ClassID

classID = 2008

Type Definition

typedef struct _ModuleDeMultiplexor
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
INT32 index;                                  // Specifies which output pin the input has to be routed. The index is zero based.
} ModuleDeMultiplexorClass;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
index int parameter 0 0 0:2

Pins

Input Pins

Name in
Description Input signal
Data type {float, int, fract32}
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real and Complex

Output Pins

Name out1
Description Output signal
Data Type {float, int, fract32}
Name out2
Description Output signal
Data Type {float, int, fract32}
Name out3
Description Output signal
Data Type {float, int, fract32}

Matlab Usage

File Name: demultiplexor_module.m 
 M=demultiplexor_module(NAME, NUMOUTPIN) 
 Creates a demultiplexor module for use in the Audio Weaver environment. 
 The module has multiple output pins and routes the input to one of the 
 outputs. 

 Arguments: 
    NAME - name of the module. 
    NUMOUTPIN - number of output pins. 

 All output pins must have the same block size and number of channels. 

 Note, this version has no built in smoothing and you may get an audible 
 discontinuity when changing the index variable.   

Copyright (c) 2026 DSP Concepts, Inc.