(8.D.2.7) OverwriteControl
Overview
Module which allows to overwrite control data on any channel.
Discussion
This is a multi channel control copy module which copies input to output with an option to overwrite the output of each channel. Overwrite is an array of size number of channels, with each element a boolean indicates whether to overwrite output with the element from Value array for that particular channel.
Type Definition
typedef struct _ModuleOverwriteControl
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32 dataType; // Data type of the input/output pin, used internally.
INT32* Overwrite; // Boolean indicates whether to overwrite the output of a channel by the given value.
FLOAT32* Value; // Array of values to be overwritten per channel.
} ModuleOverwriteControlClass;
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
dataType | int | derived | 1 | 0 | Unrestricted | Â |
Overwrite | int* | parameter | 0 | [1 x 1] | Unrestricted | Â |
Value | float* | parameter | 0 | [1 x 1] | Unrestricted | Â |
Pins
Input Pins
Name: in
Description: Input signal
Data type: {float, int, fract32}
Channel range: Unrestricted
Block size range: 1
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Output signal
Data type: {float, int, fract32}
MATLAB Usage
File Name: overwrite_control_module.m
M=overwrite_control_module(NAME, NUMCHANNELS)
Creates a multi channel overwrite control module in which input is copied
to output on channel by channel, with the control to overwrite output of a
channel with the value from the inspector array.
Arguments:
NAME - name of the module.
NUMCHANNELS - Optional: number of channels. Normally determined
during pin propagation. By default, NUMCHANNELS = 1
Â