sine lin

sine wave oscillator linear frequency input (goes all the way to 0)
Author: Johannes Taelman
License: BSD
Github: osc/sine lin.axo

Inlets

frac32.bipolar frequency

frac32buffer.bipolar phase

Outlets

frac32buffer.bipolar sine wave

Parameters

frac32.u.map.freq freq

Declaration
uint32_t Phase;
Init
Phase = 0;
Audio Rate
Phase += (param_freq + inlet_freq) << 4;
int32_t r;
int32_t p2 = Phase + (inlet_phase << 4);
SINE2TINTERP(p2, r)
outlet_wave = (r >> 4);

Privacy

© 2024 Zrna Research