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 _ModuleClipAsymFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 clipLower;                            // Lower clipping threshold
    fract32 clipLowerFract32;                     // Lower clipping threshold in fract32 form
    FLOAT32 clipUpper;                            // Upper clipping threshold
    fract32 clipUpperFract32;                     // Upper clipping threshold in fract32 form
} ModuleClipAsymFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

clipLower

float

parameter

0

-1

-10:10

clipLowerFract32

fract32

derived

0

-1

Unrestricted

clipUpper

float

parameter

0

1

-10:10

clipUpperFract32

fract32

derived

0

1

Unrestricted

Pins

Input Pins

Name: in

Description: audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: fract32

MATLAB Usage

File Name: clipasym_fract32_module.m

...