dual_sine

Dual phase sine oscillator, 0 and 90 degrees, lin-ip, pitch input, fm input
Author: Are Leistad
License: BSD
Github: drj/osc/dual_sine.axo

Inlets

frac32.bipolar Pitch input

frac32buffer.bipolar Frequency modulation input

Outlets

frac32buffer.bipolar 0 deg sine wave

frac32buffer.bipolar 90 deg sine wave

Parameters

frac32.s.map.pitch pitch

Declaration
uint32_t phase;
int32_t freq;
Init
phase = 0;
Control Rate
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
Audio Rate
phase += freq + inlet_fm;

int32_t sine;

SINE2TINTERP(phase, sine)
outlet_0 = (sine >> 4);

SINE2TINTERP(phase + 0x40000000, sine)
outlet_90 = (sine >> 4);

Privacy

© 2024 Zrna Research