autoSource

generic modulation source updates automatically when input changes
Author: Remco van der Most
License: BSD
Github: sss/patch/autoSource.axo

Inlets

frac32 value

Outlets

None

Declaration
int32_t prev1;
int32_t prev2;
Control Rate
int32_t temp1 = inlet_1;
if (!(prev1 == temp1)) {
  PExModulationSourceChange(
      &parent->GetModulationTable()[parent->MODULATOR_attr_name *
                                    NMODULATIONTARGETS],
      NMODULATIONTARGETS, &parent->PExch[0],
      &parent->PExModulationPrevVal[parent->polyIndex]
                                   [parent->MODULATOR_attr_name],
      temp1);
}
prev1 = temp1;

Privacy

© 2024 Zrna Research