sine dist window

Adjustable distorted sine window.
Author: Sputnki
License: BSD
Github: sptnk/math/sine dist window.axo

Inlets

frac32buffer in

Outlets

frac32buffer out

Parameters

frac32.u.map 0 = rectangular; 64 = sinusoidal

Declaration
int32_t r;
uint32_t size_compl;
Control Rate
size_compl = (1 << 31) - 15 * ((1 << 26) + (param_size >> 1));
Audio Rate
SINE2TINTERP(inlet_in << 4, r);
r = ___SMMUL(r, size_compl) << 1;
r = __USAT(r, 27);

if (inlet_in < 0 || inlet_in > 1 << 27) {
  outlet_out = 0;
} else
  outlet_out = r;

Privacy

© 2024 Zrna Research