cos

cosine function, -64..64 corresponds to -360 to 360 degrees
Author: Johannes Taelman
License: BSD
Github: math/cos.axo

IO Variants: 2


Variant: 1

Inlets

frac32buffer phase

Outlets

frac32buffer cos(phase)

Audio Rate
int32_t r;
SINE2TINTERP((inlet_phase << 5) + (1 << 30), r)
outlet_out = (r >> 4);

Variant: 2

Inlets

frac32 phase

Outlets

frac32 cos(phase)

Control Rate
int32_t r;
SINE2TINTERP((inlet_phase << 5) + (1 << 30), r)
outlet_out = (r >> 4);

Privacy

© 2024 Zrna Research