slowsine

sine wave oscillator
Author: Johannes Taelman
License: BSD
Github: phi/osc/slowsine.axo

Inlets

int32.positive oct

frac32.bipolar pitch

frac32buffer frequency

frac32buffer phase

Outlets

frac32buffer.bipolar sine wave

Parameters

frac32.s.map.pitch pitch

int32.hradio oct

Declaration
uint32_t Phase;
Init
Phase = 0;
Control Rate
int32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
Audio Rate
Phase += (freq + inlet_freq) >> (param_oct + inlet_oct);
int32_t r;
int32_t p2 = Phase + (inlet_phase << param_oct);
SINE2TINTERP(p2, r)
outlet_wave = (r >> 4);

Privacy

© 2024 Zrna Research