IO Variants: 4
Variant: 1
bool32.rising Reset phase
frac32.bipolar Pitch input
frac32.positive Saw wave
frac32.s.map.lfopitch pitch
uint32_t phase;
uint32_t old_reset;
phase = 0;
old_reset = 0;
if (inlet_reset && !old_reset) {
phase = 0;
} else {
int32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
phase += freq >> 2;
}
old_reset = inlet_reset;
outlet_saw = (1 << 27) - (phase >> 5);
Variant: 2
frac32.bipolar Pitch input
bool32.rising Reset phase
frac32.bipolar Saw wave
frac32.s.map.lfopitch pitch
uint32_t phase;
uint32_t old_reset;
phase = 0;
old_reset = 0;
if (inlet_reset && !old_reset) {
phase = 0;
} else {
int32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
phase += freq >> 2;
}
old_reset = inlet_reset;
outlet_saw = (1 << 27) - (phase >> 4);
Variant: 3
frac32.bipolar Pitch input
bool32.rising Reset phase
frac32.positive Saw wave
frac32.s.map.lfopitch pitch
uint32_t phase;
uint32_t old_reset;
phase = 0;
old_reset = 0;
if (inlet_reset && !old_reset) {
phase = 0;
} else {
int32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
phase += freq >> 2;
}
old_reset = inlet_reset;
outlet_saw = (phase >> 5);
Variant: 4
frac32.bipolar Pitch input
bool32.rising Reset phase
frac32.bipolar Saw wave
frac32.s.map.lfopitch pitch
uint32_t phase;
uint32_t old_reset;
phase = 0;
old_reset = 0;
if (inlet_reset && !old_reset) {
phase = 0;
} else {
int32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
phase += freq >> 2;
}
old_reset = inlet_reset;
outlet_saw = (phase >> 4) - (1 << 27);