#include <Noise.h>
Inheritance diagram for csl::PinkNoise:

Public Member Functions | |
| PinkNoise () | |
| Constructors. | |
| PinkNoise (double ampl, double offset=0.f) | |
| PinkNoise (int seed, double ampl=1.f, double offset=0.f) | |
| ~PinkNoise () | |
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
| the monoNextBuffer method is where the DSP takes place | |
| sample | nextPink () |
| returns the next pink noise sample | |
Protected Member Functions | |
| void | initialize (int numRows) |
| set up PinkNoise for N rows of generators | |
Protected Attributes | |
| int | mPinkRows [PINK_MAX_RANDOM_ROWS] |
| Pink noise generator rows. | |
| int | mPinkRunningSum |
| Used to optimize summing of generators. | |
| int | mPinkIndex |
| Incremented each sample. | |
| int | mPinkIndexMask |
| Index wrapped by ANDing with this mask. | |
| float | mPinkScalar |
| Used to scale within range of -1.0 to +1.0. | |
|
|
Constructors. Most of this code was taken from an public domain C implementation written by Phil Burk. The code and the webpage explaining it is at http://www.firstpr.com.au/dsp/pink-noise/phil_burk_19990905mPatestmPink.c and http://www.firstpr.com.au/dsp/pink-noise/ |
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
the monoNextBuffer method is where the DSP takes place
|
|
|
returns the next pink noise sample
|
|
|
set up PinkNoise for N rows of generators
|
|
|
Pink noise generator rows.
|
|
|
Used to optimize summing of generators.
|
|
|
Incremented each sample.
|
|
|
Index wrapped by ANDing with this mask.
|
|
|
Used to scale within range of -1.0 to +1.0.
|
1.4.5-20051010