Ushapes

turns unipolar phase into other shapes. Each outputs has it's own phase-offset input, except SIN, which is a direct conversion from the phase input.
Author: Remco van der Most
License: BSD
Github: sss/shape/Ushapes.axo

Inlets

frac32 in

frac32 phsIn

frac32 phsInv

frac32 phsSin

frac32 phsCos

Outlets

frac32 PIn

frac32 Inv

frac32 Sin

frac32 Cos

frac32 SIN

Declaration
int32_t sine;
Control Rate
outlet_PIn = (inlet_in + inlet_phsIn) & ((1 << 27) - 1);
outlet_Inv = ((1 << 27) - inlet_in + inlet_phsInv) & ((1 << 27) - 1);
SINE2TINTERP((inlet_in + inlet_phsSin) << 5, sine)
outlet_Sin = (sine >> 5) + (1 << 26);
SINE2TINTERP((inlet_in + inlet_phsCos + (1 << 25)) << 5, sine)
outlet_Cos = (sine >> 5) + (1 << 26);
SINE2TINTERP((inlet_in) << 5, sine)
outlet_SIN = (sine >> 5) + (1 << 26);

Privacy

© 2024 Zrna Research