nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Noise Class Reference

#include <synth.h>

Public Member Functions

 Noise (uint32_t seed)
float Uniform ()
 From 0 to 1.
float Between (float low, float high)
 From low to high.
float Next ()
 From -1 to 1: white noise, a sample at a time.

Detailed Description

Random numbers, which a seed decides, so that a sound made again from its seed comes out as it did before.

Definition at line 18 of file synth.h.

Constructor & Destructor Documentation

◆ Noise()

nanommo::Noise::Noise ( uint32_t seed)
explicit

Definition at line 12 of file synth.cc.

Member Function Documentation

◆ Between()

float nanommo::Noise::Between ( float low,
float high )

From low to high.

Definition at line 26 of file synth.cc.

◆ Next()

float nanommo::Noise::Next ( )
inline

From -1 to 1: white noise, a sample at a time.

Definition at line 29 of file synth.h.

◆ Uniform()

float nanommo::Noise::Uniform ( )

From 0 to 1.

Definition at line 20 of file synth.cc.


The documentation for this class was generated from the following files: