noise level
This commit is contained in:
parent
8ca166a662
commit
e3c54e3ef1
|
|
@ -46,7 +46,7 @@ void Module::genNoise() {
|
||||||
for (uint32_t i = 0; i < bufferSize; i++) {
|
for (uint32_t i = 0; i < bufferSize; i++) {
|
||||||
noiseRNG *= 0x8088405;
|
noiseRNG *= 0x8088405;
|
||||||
noiseRNG++;
|
noiseRNG++;
|
||||||
noiseBuf[i] = 2 - (noiseRNG & 0xffff) / 16384.0f;
|
noiseBuf[i] = 1 - (noiseRNG & 0xffff) / 32768.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue