sine

sine wave LFO, linear interpolated table, pitch input
Author: Johannes Taelman
License: BSD
Github: lfo/sine.axo

Inlets

frac32.bipolar pitch

Outlets

frac32.bipolar sine wave

Parameters

frac32.s.map.lfopitch pitch

Declaration
uint32_t Phase;
Init
Phase = 0;
Control Rate
{
  int32_t freq;
  MTOFEXTENDED(param_pitch + inlet_pitch, freq);
  Phase += freq >> 2;
  int32_t r;
  SINE2TINTERP(Phase, r)
  outlet_wave = (r >> 4);
}

Privacy

© 2024 Zrna Research