Skip to content

DCSourceControl

Discussion

THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE DCSourceV2 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. Restrictions: TBA

Module Pack

Deprecated

ClassID

classID = 2003

Type Definition

typedef struct _ModuleDCSourceControl
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
FLOAT32 scaler;                               // The constant which to multipy the input value with
} ModuleDCSourceControlClass;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
scaler float parameter 0 1 -10:10

Pins

Input Pins

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

Output Pins

Name out
Description output data
Data Type float

Matlab Usage

File Name: dc_source_control_module.m 
 M=dc_source_control_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.