Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Simulates loading of biquad fract32 filters

Discussion

This module is used for CPU load testing purposes and implements a large number of cascade Biquad fract32 filters. At instantiation time, you specify MAXSTAGES - the maximum number of filter stages that you would like to simulate. Then at run-time you can vary the number of filters running from 1 to MAXSTAGES. This makes the CPU work harder since more filter stages are running. Internally, the module uses a BiquadCascadeFract32 module to implement the filtering.

Note that if the filter is connected to a multichannel input, then the module implements numChannels * numStages filters. That is, the number of filters is scaled by the number of channels processed.

Type Definition

Code Block
typedef struct _ModuleBiquadLoadingFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 maxStages;                              // Maximum Biquad fract32 stages that can be run
    INT32 numStages;                              // Number of Biquad fract32 stages currently running
    awe_modBiquadCascadeFract32Instance *filt; // Cascade of second order Biquad filters
} ModuleBiquadLoadingFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

maxStages

int

const

0

100

1:100

numStages

int

parameter

0

1

1:100

Pins

Input Pins

Name: in

Description: Audio Input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Audio output

Data type: fract32

MATLAB Usage

File Name: biquad_loading_fract32_module.m

...