quantizelive

quantize to n bits, via cc control.
Author: Simon Iten
License: BSD
Github: lokki/math/quantizelive.axo

Inlets

frac32buffer a

int32.positive use cc i here, scaled over the whole cc range

Outlets

frac32buffer quant(a)

Declaration
int bits;
Control Rate
bits = ((int)(inlet_cc * 0.22) + 1) & 28;
Audio Rate
outlet_b = inlet_a & (~((1 << (28 - bits)) - 1));

Privacy

© 2024 Zrna Research