Overview
Linear multichannel scaler
Discussion
The Scaler module scales multichannel signals by a single gain value. By default, the module has a 1 input and 1 output pin.
...
This module is multi-type and supports both floating-point and fract32 audio signals. Note that the module is not smoothly varying. If you update the gain value, you may introduce an audible click. For clickless operation, use the ScalerSmoothedFract32 module instead.
Type Definition
Code Block |
---|
typedef struct _ModuleScalerFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure FLOAT32 gain; // Linear gain fract32 f; // Multiplicative gain factor INT32 shift; // Number of bits to shift } ModuleScalerFract32Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
gain | float | parameter | 0 | 1 | -10:10 | linear |
f | fract32 | derived | 1 | 0.5 | Unrestricted | |
shift | int | derived | 1 | 1 | Unrestricted |
Pins
Input Pins
Name: in1
Description: Input signal
...
Complex support: Real and Complex
Output Pins
Name: out1
Description: Output signal
Data type: fract32
MATLAB Usage
File Name: scaler_fract32_module.m
...