Skip to content

DCSourceControlFract32

Discussion

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

The DC source control module has an internal variable holding one data value. The module continuously fills the output wire with the internal data value multiplied by the value of the input control signal. The output has the same number of channels as the input. The output blockSize and sample rate can be specified. If not specified, the values are taken from the system input.

Module Pack

Deprecated

ClassID

classID = 2002

Type Definition

typedef struct _ModuleDCSourceControlFract32
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
FLOAT32 scaler;                               // The constant which to multipy the input value with
fract32 f;                                    // Multiplicative gain factor
INT32 shift;                                  // Number of bits to shift
} ModuleDCSourceControlFract32Class;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
scaler float parameter 0 1 -10:10
f fract32 derived 1 0.5 Unrestricted
shift int derived 1 1 Unrestricted

Pins

Input Pins

Name control
Description Input control signal
Data type fract32
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real

Output Pins

Name out
Description output data
Data Type fract32

Matlab Usage

File Name: dc_source_control_fract32_module.m 
 M=dc_source_control_fract32_module(NAME, BLOCKSIZE, SAMPLERATE) 
 Creates a DC source that takes on the value of the input control signal  
 multiplied by the scaler variable value 

 Arguments: 
    NAME - name of the module. 
    BLOCKSIZE - number of samples per output channel. 
    SAMPLERATE - sample rate of the output signal, in Hz. 

Copyright (c) 2026 DSP Concepts, Inc.