Versions Compared

Key

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

Overview

Asymmetric clipper module with separate upper and lower clipping thresholds

Discussion

Asymmetrical clipping, where the upper and lower thresholds are exposed as parameters. By setting $clipLower=-clipUpper$ symmetrical clipping can be achieved.

Type Definition

Code Block
typedef struct _ModuleClipAsym
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 clipLower;                            // Lower clipping threshold.
    FLOAT32 clipUpper;                            // Upper clipping threshold.
} ModuleClipAsymClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

clipLower

float

parameter

0

-1

-10:10

clipUpper

float

parameter

0

1

-10:10

Pins

Input Pins

Name: in

Description: audio input

...

Complex support: Real and Complex

Output Pins

Name: out

Description: audio output

Data type: float

MATLAB Usage

File Name: clipasym_module.m

...