Struct SoundSynth.Noise
A seeded xorshift generator: the only source of randomness any sound uses.
public struct SoundSynth.Noise
- Inherited Members
Constructors
Noise(uint)
public Noise(uint seed)
Parameters
seeduint
Methods
Bipolar()
The next number in [-1, 1).
public float Bipolar()
Returns
Gauss()
A roughly normal number, mean 0 and spread 1 (the sum of four uniforms).
public float Gauss()
Returns
LogRange(float, float)
A number spread evenly on a log scale between two positive bounds (pitches, sizes).
public float LogRange(float min, float max)
Parameters
Returns
Next()
The next number in [0, 1).
public float Next()
Returns
Poisson(float)
Seconds to the next event of a process happening perSecond times a second on average.
public float Poisson(float perSecond)
Parameters
perSecondfloat
Returns
Range(float, float)
A number in [min, max).
public float Range(float min, float max)