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. The module is not smoothly varying, and the gain value is applied to both the real and imaginary parts. If you update the gain value, you may introduce an audible click. For clickless operation, use the ScalerSmoothedFract32 module instead, which does not work with complex data.
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
...