triphase_lfou

120° separated outputs
Author: Smashed Transistors
License: LGPL
Github: tiar/lfo/triphase_lfou.axo

Inlets

frac32.bipolar pitch

Outlets

frac32.bipolar 0° sine

frac32.bipolar 120° sine

frac32.bipolar 240° sine

Parameters

frac32.s.map.lfopitch pitch

Declaration
uint32_t p;
Init
p = 0;
Control Rate
int32_t dp;
MTOFEXTENDED(param_pitch + inlet_pitch, dp);
p += dp >> 2;
int32_t r;
SINE2TINTERP(p, r)
outlet_phi_space_0 = (r >> 5) + (1 << 26);
SINE2TINTERP(p + 1431655765UL, r)
outlet_phi_space_120 = (r >> 5) + (1 << 26);
SINE2TINTERP(p + 2 * 1431655765UL, r)
outlet_phi_space_240 = (r >> 5) + (1 << 26);

Privacy

© 2024 Zrna Research