strms

streams-like effect based on dsp code open sourced by mutable instruments. any bugs/issues you find are our own, report on the axoloti forum. Thanks to Olivier Gillet from Mutable Instruments for open sourcing their code. http://mutable-instruments.com important note: the outputs are not audio signals, they are the frequency and gain levels of a pwm oscillator
Author: Mark Harris
License: GPL
Github: fx/strms/strms.axo

Inlets

frac32buffer in

frac32buffer excite

Outlets

frac32buffer gain for pwm

frac32buffer frequency of pwm

Parameters

frac32.u.map shape

frac32.u.map mod

frac32.u.map level

frac32.u.map env

Declaration
streams::Processor processor;
Init
processor.Init(0);
Control Rate
int i;
bool refresh = false;
// processor.set_shape(q27_to_float(param_shape));
// processor.set_mod(q27_to_float(param_mod));
// processor.set_level(q27_to_float(param_level));
// processor.set_env(q27_to_float(param_env));
if (refresh) {
  processor.Configure();
}

uint16_t gain = 0;
uint16_t frequency = 65535;

int16_t in;
int16_t excite;

for (i = 0; i < BUFSIZE; i++) {
  in = inlet_in[i] >> 16;
  excite = inlet_excite[i] >> 16;
  processor.Process(in, excite, &gain, &frequency);
  outlet_gain[i] = gain;
  outlet_freq[i] = 65535 - frequency;
}

Privacy

© 2024 Zrna Research