Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


Noise Class Reference

#include <Noise.h>

Inheritance diagram for Noise:

Generator Stk SubNoise List of all members.

Detailed Description

STK noise generator.

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 - 2007.


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.


Constructor & Destructor Documentation

Noise::Noise unsigned int  seed  ) 
 

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.


Member Function Documentation

void Noise::setSeed unsigned int  seed = 0  ) 
 

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.


The documentation for this class was generated from the following file:
The Synthesis ToolKit in C++ (STK)
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved.