Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

N to 1 multiplexor module with a control input operating sample-by-sample

Discussion

Multiplexor module in which the channel to select is taken from a control pin (the first pin). The control pin is an integer value in the range 0 to N-1, where N is the number of audio inputs. If the control value is outside of the allowable range it is clipped. The multiplexor operates on a sample-by-sample basis. The 1st value on the control pin selects which channel and input pin the 1st output is from. The 2nd value on the control pin selects which channel and input pin the 2nd output is from. And so on.

...

Smoothing is not supported by this module.

Type Definition

Code Block
typedef struct _ModuleSampleMultiplexorControl
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleSampleMultiplexorControlClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

indexPinFlag

int

const

0

1

Unrestricted

index

int

parameter

0

0

0:2

Pins

Input Pins

Name: Ctrl

Description: Control signal

...

Complex support: Real and Complex

Output Pins

Name: out

Description: Output signal

Data type: {float, int, fract32}

MATLAB Usage

File Name: sample_multiplexor_control_module.m

...