Enumerations | Functions

Noise generator, capable of producing white or pink noise. More...

Enumerations

enum  NoiseType { WhiteNoise, PinkNoise }
 

Functions

void tNoise_init (tNoise *const noise, NoiseType type, LEAF *const leaf)
 Initialize a tNoise to the default mempool of a LEAF instance. More...
 
void tNoise_initToPool (tNoise *const noise, NoiseType type, tMempool *const)
 Initialize a tNoise to a specified mempool. More...
 
void tNoise_free (tNoise *const noise)
 Free a tNoise from its mempool. More...
 
float tNoise_tick (tNoise *const noise)
 

Detailed Description

Noise generator, capable of producing white or pink noise.

Enumeration Type Documentation

◆ NoiseType

enum NoiseType

Noise types

Enumerator
WhiteNoise 

White noise. Full spectrum.

PinkNoise 

Pink noise. Inverse frequency-proportional spectrum.

Function Documentation

◆ tNoise_init()

void tNoise_init ( tNoise *const  noise,
NoiseType  type,
LEAF *const  leaf 
)

Initialize a tNoise to the default mempool of a LEAF instance.

Parameters
noiseA pointer to the tNoise to initialize.
leafA pointer to the leaf instance.

◆ tNoise_initToPool()

void tNoise_initToPool ( tNoise *const  noise,
NoiseType  type,
tMempool * const   
)

Initialize a tNoise to a specified mempool.

Parameters
noiseA pointer to the tNoise to initialize.
mempoolA pointer to the tMempool to use.

◆ tNoise_free()

void tNoise_free ( tNoise *const  noise)

Free a tNoise from its mempool.

Parameters
noiseA pointer to the tNoise to free.

◆ tNoise_tick()

float tNoise_tick ( tNoise *const  noise)
Parameters
noiseA pointer to the relevant tNoise.