uniform f trig

uniform distributed (white) noise, triggered generation. Range -64..64
Author: Johannes Taelman
License: BSD
Github: rand/uniform f trig.axo

Inlets

bool32.rising trigger

Outlets

frac32.bipolar random number

Declaration
int32_t val;
int ntrig;
Init
val = (int32_t)(GenerateRandomNumber()) >> 4;
ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  val = (int32_t)(GenerateRandomNumber()) >> 4;
  ntrig = 1;
} else if (!(inlet_trig > 0))
  ntrig = 0;
outlet_rand = val;

Privacy

© 2024 Zrna Research