Document toolboxDocument toolbox

(8.D.2.5) PinkNoiseFract32

Overview

Pink noise generator

Discussion

This subsystem generates pink noise by combining a white noise generate and a filter The RMS output level is -20 dB

Type Definition

-Not Shown-

Pins

Output Pins

Name: out

Description: audio output

Data type: fract32

Scratch Pins

Channel count: 1

Block size: 32

Sample rate: 48000

 

Channel count: 1

Block size: 32

Sample rate: 48000

MATLAB Usage

File Name: pink_noise_fract32_subsystem.m

SYS=pink_noise_fract32_subsystem(NAME, SR, NUMCHANNELS, BLOCKSIZE) Creates a module which outputs pink noise at a specified standard deviation. Internally, the module uses a white noise generator followed by an IIR filter. Arguments: NAME - name of the module. SR - sample rate. This must be set since this is an output module. NUMCHANNELS - number of interleaved channels in each output pin. BLOCKSIZE - number of samples per output channel.

Â