Document toolboxDocument toolbox

(8.D.2.5) ClipAsymFract32

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

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

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

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

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

Â