triphase_vlfo

Very Low Frequency Oscillator cycle is the time of a cycle in seconds (up to 64s) 120° separated outputs.
Author: Smashed Transistors
License: LGPL
Github: tiar/lfo/triphase_vlfo.axo

Inlets

None

Outlets

frac32.bipolar 0° sine

frac32.bipolar 120° sine

frac32.bipolar 240° sine

Parameters

frac32.u.map cycle

Declaration
uint32_t p;
Init
p = 0;
Control Rate
int32_t dp;

dp = 5592 * (0x7FFFFFFF / (param_cycle > 11185 ? param_cycle : 11185));

p += dp >> 2;
int32_t r;
SINE2TINTERP(p, r)
outlet_phi_space_0 = (r >> 4);
SINE2TINTERP(p + 1431655765UL, r)
outlet_phi_space_120 = (r >> 4);
SINE2TINTERP(p + 2 * 1431655765UL, r)
outlet_phi_space_240 = (r >> 4);

Privacy

© 2024 Zrna Research