Skip to content

WhiteNoiseFract32

Overview

Uniformly distributed white noise generator

Discussion

Generates uniformly distributed random values at the sample rate, in the specified range. Internally, the module uses a random number generator and then scales the values into the proper range.

Note: if a constant RNG seed is required, please use the Rand module.

Module Pack

Standard

ClassID

classID = 215

Type Definition

typedef struct _ModuleWhiteNoiseFract32
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
fract32 range;                                // Generated noise will be in the interval [-range +range]
awe_modRandInstance *rand; // Random number generator using a LCG algorithmawe_modScalerFract32Instance *scale; // Linear multichannel scaler} ModuleWhiteNoiseFract32Class;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
range fract32 parameter 0 0.9 -1:0.9999

Pins

Output Pins

Name out
Description audio output
Data Type fract32

Scratch Pins

Channel Count 1
Block size 48
Sample rate 48000

Matlab Usage

File Name: white_noise_fract32_module.m 
 M=white_noise_fract32_module(NAME, SR, NUMCHANNELS, BLOCKSIZE) 
 Creates a Fractional white noise generator for use in the Audio Weaver.  The  
 module has a single multichannel output pin. 
    NAME - name of the module. 
    SR - sample rate of the output 
    NUMCHANNELS - number of interleaved channels in each output pin. 
    BLOCKSIZE - number of samples per output channel. 

Copyright (c) 2026 DSP Concepts, Inc.