scale attr b

scales the input between 'high' and 'low'.
Author: robert schirmer
License: BSD
Github: rbrt/math/scale attr b.axo

Inlets

frac32 in

Outlets

frac32 out

Attributes

combo input

spinner hi

spinner lo

Control Rate
uint32_t in = (attr_input) ? (inlet_in >> 1) + (1 << 26) : inlet_in;
outlet_out = (___SMMUL((((attr_hi << 21) - (attr_lo << 21)) >> 1), in) << 6) +
             (attr_lo << 21);

Privacy

© 2024 Zrna Research