updator

update modulator the input is copied to the output as long as the internal phase-oscillator is above the pw-value. When it's below, last value will be held. Result is HP-filtered
Author: Remco van der most
License: BSD
Github: sss/dist/updator.axo

Inlets

frac32buffer phase increment

frac32 pitch

frac32 freq

Outlets

frac32buffer.positive phasor wave

Parameters

frac32.s.map.pitch octave

frac32.s.map.lfopitch morph

frac32.u.map pw

Declaration
uint32_t Phase;
int32_t SQR;
int32_t val;
Init
Phase = 0;
Control Rate
uint32_t freq;
MTOFEXTENDED(((param_octave >> 24) * 12 << 21) + inlet_pitch, freq);
uint32_t F;
MTOFEXTENDED(param_morph, F)
F = F >> 10;
freq += inlet_freq + F;
Audio Rate
Phase += (freq >> 0);

if ((Phase >> 5) > param_pw) {
  SQR = inlet_in;
}
val += (SQR - val) >> 10;
outlet_phasor = SQR - val;

Privacy

© 2024 Zrna Research