Overview
Check if the input block has all non-zero values
Discussion
This module checks if all samples in the input block are non-zero. If there are zero values, then the instance variable .result is set to 0. Otherwise, if all input samples are non-zero, then .result is set to 1.
...
When the module is bypassed, the output is set to 1.
Type Definition
Code Block |
---|
typedef struct _ModuleLogicAll { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 result; // Equals 1 if all input values in the block are non-zero. Otherwise equals 0. } ModuleLogicAllClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
result | int | state | 0 | 0 | 0:1 |
Pins
Input Pins
Name: in
Description: Integer inputs
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Contains the instance variable .result
Data type: int
MATLAB Usage
File Name: logic_all_module.m
...