modsource auto

generic modulation source, that sends its modulation automatically when the value changes.
Author: Johannes Elliesen
License: BSD
Github: TSG/patch/modsource auto.axo

Inlets

frac32 value

Outlets

None

Declaration
int ntrig;
int32_t in_old;
Init
in_old = 0;
Control Rate
if (inlet_v != in_old) {
  PExModulationSourceChange(
      &parent->GetModulationTable()[parent->MODULATOR_attr_name *
                                    NMODULATIONTARGETS],
      NMODULATIONTARGETS, &parent->PExch[0],
      &parent->PExModulationPrevVal[parent->polyIndex]
                                   [parent->MODULATOR_attr_name],
      inlet_v);
}
in_old = inlet_v;

Privacy

© 2024 Zrna Research