sqrt

square root (of absolute value), y = 8*sqrt(x)
Author: Johannes Taelman
License: BSD
Github: math/sqrt.axo

IO Variants: 2


Variant: 1

Inlets

frac32buffer in

Outlets

frac32buffer out

Audio Rate
int32_t ai = inlet_in > 0 ? inlet_in : -inlet_in;
float aif = ai;
aif *= (1 << 27);
aif = _VSQRTF(aif);
outlet_out = (int)aif;

Variant: 2

Inlets

frac32 in

Outlets

frac32 out

Control Rate
int32_t ai = inlet_in > 0 ? inlet_in : -inlet_in;
float aif = ai;
aif *= (1 << 27);
aif = _VSQRTF(aif);
outlet_out = (int)aif;

Privacy

© 2024 Zrna Research