Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Compares input with a user definable value with option to replace the output

Discussion

This module implements a general purpose logical compare module against stored user defined values that is capable of realizing many different logic operations. The behavior of the logic compare is controlled by the compareType parameter. compareType is an integer in the range from 0 to 5 inclusive.

...

Module works on multichannel control signals, with individual parameters for each channel. No smoothing is applied when switching the output to or from the replacementValue.

Type Definition

Code Block
typedef struct _ModuleLogicCompareConstReplace
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 numChan;                                // Number of channels.
    INT32* compareType;                           // Selects the type of comparison that is implemented by the module: Equal=0 NotEqual=1 LessThan=2 LessOrEqual=3 GreaterThan=4 GreaterOrEqual=5. One row per comparison.
    FLOAT32* constValue;                          // Selects value against to compare against.
    FLOAT32* replaceValue;                        // Selects value for replacement.
} ModuleLogicCompareConstReplaceClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

numChan

int

const

1

1

Unrestricted

compareType

int*

parameter

0

[1 x 1]

0:5

constValue

float*

parameter

0

[1 x 1]

Unrestricted

replaceValue

float*

parameter

0

[1 x 1]

Unrestricted

Pins

Input Pins

Name: in

Description: Control In

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Control Out

Data type: float

MATLAB Usage

File Name: logic_compare_const_replace_module.m

...