Home Information Classes Download Usage Mail List Requirements Links Tutorial
#include <Noise.h>
Inheritance diagram for Noise:
Generic random number generation using the C rand() function. The quality of the rand() function varies from one OS to another.
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
Definition at line 18 of file Noise.h.
Public Member Functions | |
Noise () | |
Default constructor which seeds the random number generator with the system time. | |
Noise (unsigned int seed) | |
Constructor which seeds the random number generator with a given seed. | |
virtual | ~Noise () |
Class destructor. | |
void | setSeed (unsigned int seed=0) |
Seed the random number generator with a specific seed value. | |
virtual StkFloat | tick () |
Return a random number between -1.0 and 1.0 using rand(). | |
virtual StkFloat * | tick (StkFloat *vector, unsigned int vectorSize) |
Compute vectorSize outputs and return them in vector. | |
virtual StkFrames & | tick (StkFrames &frames, unsigned int channel=1) |
Fill a channel of the StkFrames object with computed outputs. |
|
Constructor which seeds the random number generator with a given seed. If the seed value is zero, the random number generator is seeded with the system time. |
|
Seed the random number generator with a specific seed value. If no seed is provided or the seed value is zero, the random number generator is seeded with the current system time. |
|
Fill a channel of the StkFrames object with computed outputs.
The Reimplemented from Generator. Reimplemented in SubNoise. |
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |