Versions Compared

Key

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

Overview

Remainder of a signal by constant or by other signal on a sample-by-sample basis

Discussion

The module provides output as the remainder of numerator input. divided by denominator value or denominator input pin. If the DENOMFROMPIN argument is 1 then the module expects denominator from the input pin. The size of the denominator pin must be either 1 or blockSize of the numerator pin. Output remainder pin have the same number of channels as the input. The module implements Matlab equivalent of Mod function.

Type Definition

Code Block
typedef struct _ModuleRemainder

{

    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure

    FLOAT32 denominator;                          // Denominator value. Enabled if DENOMFROMPIN is zero.

} ModuleRemainderClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

denominator

float

state

0

1

Unrestricted

Pins

Input Pins

Name: numer

Description: Numerator input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: rem

Description: Remainder output

Data type: float

MATLAB Usage

File Name: remainder_module.m

...