O2sine

x2 oversampled sine wave oscillator
Author: SmashedTransistors
License: LGPL
Github: tiar/osc/O2sine.axo

Inlets

frac32.bipolar pitch

Outlets

frac32buffer.bipolar sine wave

frac32buffer.bipolar y0

Parameters

frac32.s.map.pitch pitch

Declaration
uint32_t p;
Init
p = 0;
Control Rate
int32_t dp;
MTOFEXTENDED(param_pitch + inlet_pitch, dp);
dp >>= 1;
Audio Rate
int32_t r;
p += dp;
SINE2TINTERP(p, r)
outlet_y1 = r >> 4;
p += dp;
SINE2TINTERP(p, r)
outlet_y0 = r >> 4;

Privacy

© 2024 Zrna Research