Versions Compared

Key

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

Overview

Computes statistics per channel on a block-by-block basis

Discussion

This module calculates statistics of the input signal on a per-channel block-by-block basis. The input pin can have an arbitrary number of interleaved channels and the calculation occurs per channel. The output pin has the same number of channels as the input and a blockSize of 1.

...

By default, the sample rate of the output pin equals SRin / blocksize. There are some times when this computes the wrong sample rate and you can overwrite the output sample rate using the SAMPLERATE argument.

Type Definition

Code Block
typedef struct _ModuleBlockStatisticsN
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 statisticsType;                         // Type of statistics calculated.
} ModuleBlockStatisticsNClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

statisticsType

int

parameter

0

0

0:9

Pins

Input Pins

Name: in

Description: Audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Value

...

Description: Index

Data type: int

MATLAB Usage

File Name: block_statisticsn_module.m

...