gaussian

pseudo gaussian distributed (white) noise Range -64..64
Author: Johannes Taelman
License: BSD
Github: noise/gaussian.axo

Inlets

None

Outlets

frac32buffer.bipolar white noise

Declaration
uint32_t seeds[8];
Init
seeds[0] = 0x21c32332 + GenerateRandomNumber();
seeds[1] = 0xfbc57f7a + GenerateRandomNumber();
seeds[2] = 0x7dd1ef4a + GenerateRandomNumber();
seeds[3] = 0xe4ec34ad + GenerateRandomNumber();
seeds[4] = 0x72007b2f + GenerateRandomNumber();
seeds[5] = 0x3d1e9783 + GenerateRandomNumber();
seeds[6] = 0xa4a8f892 + GenerateRandomNumber();
seeds[7] = 0xc82c5e28 + GenerateRandomNumber();
Audio Rate
int i;
int32_t n = 0;
for (i = 0; i < 8; i++) {
  seeds[i] = (seeds[i] * 196314165) + 907633515;
  n += ((int32_t)(seeds[i])) >> 7;
}
outlet_wave = n;

Privacy

© 2024 Zrna Research