Home Information Classes Download Usage Mail List Requirements Tutorial
#include <SubNoise.h>
Inheritance diagram for SubNoise::
Public Methods | |
SubNoise (int subRate=16) | |
Default constructor sets sub-sample rate to 16. | |
~SubNoise () | |
Class destructor. | |
int | subRate (void) const |
Return the current sub-sampling rate. | |
void | setRate (int subRate) |
Set the sub-sampling rate. | |
MY_FLOAT | tick () |
Return a sub-sampled random number between -1.0 and 1.0. |
Generates a new random number every "rate" ticks 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 - 2002.
The Synthesis ToolKit in C++ (STK) |
©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |