Versions Compared

Key

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

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.

Type Definition

Code Block
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 algorithm
    awe_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: 32

Sample rate: 48000

MATLAB Usage

File Name: white_noise_fract32_module.m

...