(8.D.2.4) Undb20Approx
Overview
Converts from decibels to linear units
Discussion
Converts from decibels to linear units using a fast polynomial approximation. The maximum error in the result is 3.228661e-002 dB
Type Definition
typedef struct _ModuleUndb20Approx
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
} ModuleUndb20ApproxClass;
Pins
Input Pins
Name: in
Description: Input signal
Data type: float
Channel range: Unrestricted
Block size range: Unrestricted
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Output signal
Data type: float
MATLAB Usage
File Name: undb20_approx_module.m
M=undb20_approx_module(NAME)
Creates an Audio Weaver module that computes the function 10^(x/20)
using a fast polynomial approximation This converts from decibels
to linear units.
NAME - name of the module.
Â