Versions Compared

Key

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

Overview

Peak and RMS meter module

Discussion

This modules provides a flexible level meter that can operate in several modules. The module has a single multichannel input and separately meters each channel. The meter can be configured to conform to IEC 60280-10 (peak meters) and IEC 60280-17 (VU Meter) specifications. The meterType parameter is used to configure the module as follows.

...

In meterTypes 0 to 3, the peak attack and release are performed on a sample-by-sample basis in the envelope follower. In meterTypes 16 to 19, the peak absolute value for the entire input block is found and this one value is passed through the envelope follower.

Type Definition

Code Block
typedef struct _ModuleMeterFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 meterType;                              // Operating module of the meter. Selects between peak and RMS calculations. See the discussion section for more details
    FLOAT32 attackTime;                           // Attack time of the meter. Specifies how quickly the meter value rises
    FLOAT32 releaseTime;                          // Release time of the meter. Specifies how quickly the meter decays
    fract32 attackCoeffFract32;                   // Internal coefficient that realizes the attack time
    fract32 releaseCoeffFract32;                  // Internal coefficient that realizes the release time
    fract32* value;                               // Array of meter output values, one per channel
} ModuleMeterFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

meterType

int

parameter

0

18

0:3, 16:19

attackTime

float

derived

1

65

0:1000

msec

releaseTime

float

derived

1

65

0:10000

msec

attackCoeffFract32

fract32

derived

1

0.02336

Unrestricted

releaseCoeffFract32

fract32

derived

1

0.02336

Unrestricted

value

fract32*

state

0

[1 x 1]

-60:10

Pins

Input Pins

Name: in

Description: audio input

...

Sample rate range: Unrestricted

Complex support: Real

Scratch Pins

Channel count: 1

Block size: 32

Sample rate: 48000

MATLAB Usage

File Name: meter_fract32_module.m

...