frac32.bipolar pitch
frac32buffer frequency
frac32buffer phase
frac32buffer sync, resets oscillator phase on rising zero-crossing
frac32buffer.bipolar sine wave
frac32.s.map.pitch pitch
uint32_t Phase;
int32_t old_sync;
Phase = 0;
old_sync = 0;
int32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
if (inlet_sync > 0 && old_sync <= 0)
Phase = 0;
else
Phase += freq + inlet_freq;
old_sync = inlet_sync;
int32_t r;
int32_t p2 = Phase + (inlet_phase << 4);
SINE2TINTERP(p2, r)
outlet_wave = (r >> 4);