Skip to content

ScalerN

Discussion

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

Multichannel scaler, where each input channel has its own individual gain value. The gain parameter consists of an array of gains, one per input/output channel.

Note that this module does not do smoothing. Changes to gains may introduce audible clicks. ScalerNSmoothed module is a smoothed version of this module.

Module Pack

Deprecated

ClassID

classID = 2041

Type Definition

typedef struct _ModuleScalerN
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
FLOAT32* gain;                                // Array of linear gains, one per channel.
} ModuleScalerNClass;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
gain float* parameter 0 [1 x 1] -10:10 linear

Pins

Input Pins

Name in
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: scalern_module.m 
 M=scalern_module(NAME, NUMCHANNELS) 
 Multichannel scaler module with individual control of gains in each 
 channel.  Arguments: 
    NAME - name of the module. 
    NUMCHANNELS - Optional: number of channels. Normally determined 
             during pin propagation  

Copyright (c) 2026 DSP Concepts, Inc.