White noise#

float uz_wavegen_white_noise(float amplitude)#

Returns one random sample of a white-noise function.

Parameters:
  • amplitude – Max value of the white-noise wave

Returns:

Returns one random sample

Example#

Listing 76 Example function call to generate white noise#
1#include "uz_wavegen.h"
2int main(void) {
3   float output = uz_wavegen_white_noise(1.0f);
4}

Description#

Outputs one sample of a white noise function for each function call. The argument amplitude limits the maximum value of the white noise function.

Figure made with TikZ

Fig. 272 white noise wave