exp

exponent function, y=pow(2,(x/8)-2)
Author: Johannes Taelman
License: BSD
Github: math/exp.axo

IO Variants: 2


Variant: 1

Inlets

frac32.positive input

Outlets

frac32 output

Control Rate
int8_t s = (inlet_a >> 24) + 4;
uint8_t ei = inlet_a >> 16;
if (s >= 0)
  outlet_result = expt[ei] << s;
else
  outlet_result = expt[ei] >> (-s);

Variant: 2

Inlets

frac32buffer.positive input

Outlets

frac32buffer output

Audio Rate
int8_t s = (inlet_a >> 24) + 4;
uint8_t ei = inlet_a >> 16;
if (s >= 0)
  outlet_result = expt[ei] << s;
else
  outlet_result = expt[ei] >> (-s);

Privacy

© 2024 Zrna Research