frac32.positive sets the offset
frac32.positive sets a range
frac32.positive speed
frac32.positive offset inside the range
bool32.rising reset phase
frac32buffer.positive phase to read from an area of a table,defined by range and offset
uint32_t Phase;
uint32_t out;
uint32_t r;
Phase = 0;
r = 1;
{
if (inlet_reset && r) {
r = 0;
Phase = (inlet_start >> 5);
} else {
if (!inlet_reset)
r = 1;
Phase += inlet_freq >> 6;
}
out = (Phase >> 5);
outlet_slot = ((___SMMUL(inlet_range, (out)) << 5) + inlet_offset);
}