Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Overview

Computes the undb20 using fixed-point math.

Discussion

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

Type Definition

typedef struct _ModuleUndb20Fract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleUndb20Fract32Class;

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: undb20_fract32_module.m

 M = undb20_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 Q16.16.
 Arguments:
    NAME - name of the module.

  • No labels