Document toolboxDocument toolbox

(8.D.2.7) Undb10Fract32

Overview

Computes the undb10 using fixed-point math.

Discussion

Computes the undb10 function using fixed-point math. The input and output fixed-point data is in Q9.23 format and must be in the range [-69 +24] dB. The result is accurate to about 0.005 dB, or about 0.092%.

Type Definition

typedef struct _ModuleUndb10Fract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleUndb10Fract32Class;

Pins

Input Pins

Name: in

Description: Input signal

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal

Data type: fract32

MATLAB Usage

File Name: undb10_fract32_module.m

M = undb10_fract32_module(NAME) Creates an Audio Weaver module that converts from linear to dB units using fixed-point arithmetic. The input and output formats are assumed to be Q9.23. Arguments: NAME - name of the module.

Â