saw down lin

saw wave LFO, falling slope, frequency input
Author: Johannes Taelman
License: BSD
Github: lfo/saw down lin.axo

Inlets

frac32 frequency

bool32.rising reset phase

Outlets

frac32.positive saw wave

Declaration
uint32_t Phase;
uint32_t r;
Init
Phase = 0;
r = 1;
Control Rate
{
  if (inlet_reset && r) {
    Phase = 0;
    r = 0;
  } else {
    if (!inlet_reset)
      r = 1;
    Phase -= inlet_freq >> 2;
  }
  outlet_wave = (Phase >> 5);
}

Privacy

© 2024 Zrna Research