vca han

a VCA with linear to hanning interpolation
Author: Robert Schirmer
License: BSD
Github: rbrt/control/vca han.axo

Inlets

frac32.positive phase

frac32buffer a

Outlets

frac32buffer o

Declaration
int32_t win;
int32_t prev;
int32_t step;
int32_t i;
Control Rate
{
  int32_t r;
  HANNING2TINTERP(inlet_v << 4, r)
  win = (r >> 4);
  step = (win - prev) >> 4;
  i = prev;
  prev = win;
}
Audio Rate
outlet_o = ___SMMUL(inlet_a, i) << 5;
i += step;

Privacy

© 2024 Zrna Research