Sonic Flow Blocks Reference Guide
The purpose of SF_Noise_Generator is to generate white noise with a uniform probability density function. The noise is a pseudo-random number sequence generated with a linear congruential generator (LCG).
SF_Noise_Generator (const char* name = 0);
This is the constructor of a SF_Noise_Generator block. Following attributes of the class are specified in the constructor:
virtual ~SF_Noise_Generator ();
This is the destructor.
virtual void finish ();
virtual void initialize ();
virtual void execute ();
The initialize
- execute
- finish
chain of function calls is used to carry out the simulation of a block. See
SF_Block.
The initialize
generates the seed value for the LCG.
The execute
carries out the actual simulation process.
The output frame is filled according to the following equation:
Y[n] = a * Y[n-1] (modulo m)where
a = 16807 (7^5)and
m = 2147483647 (2^31-1)The output signal is multiplied (pointwise) with the
AMP
signal.
The finish
does nothing.
enum Input_Indices {AMP};
enum Output_Indices {Y};
Last modified: Wed Dec 2 13:28:47 1998
jarno.seppanen@cs.tut.fi
Audio Research Group