lphasor

divides a playback position by a length and bit-shifts the result 6 times to the left,in order to drive a phasor
Author: robert schirmer
License: BSD
Github: rbrt/testing/lphasor.axo

Inlets

int32 spos

int32 slength

Outlets

frac32.bipolar phase

Declaration
int64_t va;
uint8_t factor;
uint32_t phase;
Control Rate
va = inlet_spos;
outlet_phase = (float)(((va << 21) / inlet_slength) << 6);

Privacy

© 2024 Zrna Research