knee

Knee shape.
Author: Sputnki
License: BSD
Github: sptnk/math/knee.axo

Inlets

frac32 in

frac32 ouput offset

frac32 x position in which the knee happens

frac32 angular coefficient of the knee

Outlets

frac32 out

Parameters

frac32.s.map output offset

frac32.s.map x position in which the knee happens

frac32.s.map angular coefficient of the knee

bool32.tgl off: \_ - on: _/

Control Rate
int32_t y0 = inlet_y0 + param_y0;
int32_t x0 = inlet_x0 + param_x0;
int32_t m = inlet_m + param_m;
int32_t x = inlet_in - x0;

int32_t y = ___SMMLA(x << 2, m << 3, y0);

if ((param_pos ? -x : x) > 0)
  outlet_out = y0;
else
  outlet_out = y;

Privacy

© 2024 Zrna Research