Skip to main content
Skip table of contents

ClipAsym

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
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

Data type: float

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real and Complex

Output Pins

Name: out

Description: audio output

Data type: float

MATLAB Usage

File Name: clipasym_module.m

CODE
 M=clipasym_module(NAME)
 Creates an assymetric clip module for use with Audio Weaver.
 
 Arguments:
    NAME - name of the module.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.