bool32.rising rnd
int32 count
int32 length
bool32 rand
bool32.mom rand
frac32.u.map chance
frac32.u.map repeat
int32_t _val[128];
int32_t vol;
int ntrig;
int8_t lng;
int i;
for (i = 0; i < 128; i++)
_val[i] = (GenerateRandomNumber()) >> 4;
{}
ntrig = 0;
int32_t repeat = ___SMMUL(param_repeat << 3, inlet_length << 2);
int32_t gtrig = inlet_count - ((inlet_count / repeat) * repeat);
gtrig = gtrig == 0 ? (1 << 27) : 0;
lng = inlet_length;
if (((param_rand + inlet_rnd) > 0) && (!(ntrig))) {
for (i = 0; i < lng; i++)
_val[i] = (GenerateRandomNumber()) >> 4;
{}
ntrig = 1;
} else if (!((param_rand + inlet_rnd) > 0)) {
ntrig = 0;
}
vol = _val[inlet_count];
outlet_rand = (param_chance + gtrig > (vol >> 1)) ? (1 << 27) : 0;