saw cheap

saw wave oscillator Non-bandwith limited, cheap sound
Author: Johannes Taelman
License: BSD
Github: osc/saw cheap.axo

Inlets

frac32.bipolar pitch

Outlets

frac32buffer.bipolar saw wave, non-anti-aliased

Parameters

frac32.s.map.pitch pitch

Declaration
int32_t osc_p;
Init
osc_p = 0;
Control Rate
uint32_t freq;
MTOFEXTENDED(param_pitch + inlet_pitch, freq);
int j;
for (j = 0; j < BUFSIZE; j++) {
  osc_p += freq;
  outlet_wave[j] = (osc_p) >> 5;
}

Privacy

© 2024 Zrna Research