Versions Compared

Key

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

Overview

Audio sample decimator with IIR filter

Discussion

The IIR decimator subsystem implements an IIR filter followed by a downsampler. IIR low-pass filter is realized by adding allpass pair subsystem output. Vaiable cutoffFreq must be smaller than Fs*0.5/D, where Fs is a sampling rate and D is a decimation factor

The block size of the input pin must be divisible by the decimation factor D. The output block size equals the input block size divided by D. The output sample rate equals the input sample rate divided by D.

Type Definition

-Not Shown-

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

cutoffFreq

float

parameter

0

10800

20:24000

Hz

Rs

float

parameter

0

60

10:100

dB

D

int

const

0

2

Unrestricted

Pins

Input Pins

Name: in

Description: Audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Audio input

Data type: float

Scratch Pins

Channel count: 1

Block size: 32

...

Block size: 32

Sample rate: 48000

MATLAB Usage

File Name: iir_decimator_subsystem.m

...