Overview
Check if the input block has any non-zero values
Discussion
This module checks if any samples in the input block are non-zero. If there are non-zero values, then the instance variable .result is set to 1. Otherwise, if all input samples are zero, then .result is set to 0.
...
When the module is bypassed, the output is set to 1.
Type Definition
Code Block |
---|
typedef struct _ModuleLogicAny { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 result; // Equals 0 if all input values in the block are 0. Otherwise equals 1. } ModuleLogicAnyClass; |
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_any_module.m
...