IO Variants: 4
Variant: 1
frac32.bipolar Pitch input
frac32buffer.bipolar phase input
frac32buffer.bipolar phase reset input
frac32buffer.positive Phasor output
frac32.s.map.pitch pitch
uint32_t phase;
int32_t old_sync;
int32_t freq;
phase = 0;
phase = 0;
old_sync = 0;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
if (inlet_sync > 0 && old_sync <= 0) {
phase = 0;
} else {
phase += freq;
}
old_sync = inlet_sync;
outlet_out = (phase + (inlet_phase << 4)) >> 5;
Variant: 2
frac32.bipolar Pitch input
frac32buffer.bipolar phase input
frac32buffer.bipolar phase reset input
frac32buffer.bipolar Phasor output
frac32.s.map.pitch pitch
uint32_t phase;
int32_t old_sync;
int32_t freq;
phase = 0;
phase = 0;
old_sync = 0;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
if (inlet_sync > 0 && old_sync <= 0) {
phase = 0;
} else {
phase += freq;
}
old_sync = inlet_sync;
outlet_out = ((phase + (inlet_phase << 4)) >> 4) - (1 << 27);
Variant: 3
frac32buffer.bipolar phase input
frac32buffer.bipolar phase reset input
frac32.bipolar Pitch input
frac32buffer.bipolar Sine output
frac32.s.map.pitch pitch
uint32_t phase;
int32_t old_sync;
int32_t freq;
phase = 0;
old_sync = 0;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
if (inlet_sync > 0 && old_sync <= 0) {
phase = 0;
} else {
phase += freq;
}
old_sync = inlet_sync;
int32_t sine;
SINE2TINTERP(phase + (inlet_phase << 4), sine)
outlet_out = (sine >> 4);
Variant: 4
frac32.bipolar Pitch input
frac32buffer.bipolar phase input
frac32buffer.bipolar phase reset input
frac32buffer.positive Sine output
frac32.s.map.pitch pitch
uint32_t phase;
int32_t old_sync;
int32_t freq;
phase = 0;
old_sync = 0;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
if (inlet_sync > 0 && old_sync <= 0) {
phase = 0;
} else {
phase += freq;
}
old_sync = inlet_sync;
int32_t sine;
SINE2TINTERP(phase + (inlet_phase << 4), sine)
outlet_out = (sine >> 5) + (1 << 26);