frac32 pitch
frac32 shift
frac32 size
frac32 mix
frac32buffer phase increment
bool32 active
frac32buffer out
frac32.s.map fm
frac32.s.map p2size
frac32.s.map p2shift
frac32.s.map size
frac32.u.map shift
frac32.u.map cut
frac32.s.map.pitch pitch
int32 root
int32 harmonic
objref table
uint32_t Phase;
int32_t shift;
int32_t tap;
int32_t val1;
int32_t val2;
int32_t out;
int i;
int32_t offset1;
int32_t offset2;
int32_t offset3;
int32_t index;
int32_t mix;
uint32_t freq;
int32_t cut;
Phase = 0;
val1 = 0;
val2 = 0;
if (inlet_active > 0) {
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
freq = freq;
MTOF(__USAT(param_pitch + param_cut, 27), cut);
cut = cut * param_harmonic;
offset1 = ___SMMUL((param_pitch + inlet_pitch + (1 << 26)) << 3,
param_p2shift << 2);
offset2 = ___SMMUL((param_pitch + inlet_pitch + (24 << 21)) << 3,
param_p2size >> 4) +
param_size + inlet_size &
((1 << 27) - 1);
}
if (inlet_active > 0) {
offset3 = offset3 + ((offset2 - offset3) >> 8);
mix = mix + ((inlet_mix - mix) >> 8);
out = 0;
Phase += (freq >> 0) + ___SMMUL(inlet_freq << 3, param_fm);
shift = shift + ((((param_shift << 3) + inlet_shift) - shift) >> 8);
index = (___SMMUL(((Phase * param_harmonic) >> 9), offset3 << 3) +
((shift + offset1) >> 8)) >>
11;
tap = attr_table.array[((index) << 5) & ((1 << 16) - 1)];
val1 = ___SMMLA(((tap << 2) - val1) << 1, cut, val1);
val2 = ___SMMLA((val1 - val2), cut, val2);
int32_t sine;
SINE2TINTERP(Phase * param_root, sine)
outlet_out =
___SMMUL(val2 << 3, mix << 3) + ___SMMUL((1 << 27) - (mix), sine);
}