frac32buffer phase increment
frac32 pitch
frac32 freq
frac32buffer.positive phasor wave
frac32.s.map.pitch octave
frac32.s.map.lfopitch morph
frac32.u.map pw
uint32_t Phase;
int32_t SQR;
int32_t val;
Phase = 0;
uint32_t freq;
MTOFEXTENDED(((param_octave >> 24) * 12 << 21) + inlet_pitch, freq);
uint32_t F;
MTOFEXTENDED(param_morph, F)
F = F >> 10;
freq += inlet_freq + F;
Phase += (freq >> 0);
if ((Phase >> 5) > param_pw) {
SQR = inlet_in;
}
val += (SQR - val) >> 10;
outlet_phasor = SQR - val;