autoPreset

apply preset, preset zero = init, and will reset ALL parameters, not just the presets this version doesn't need a trigger to update the preset, but automatically responds when you change the preset number.
Author: Remco van der Most
License: BSD
Github: sss/patch/autoPreset.axo

Inlets

int32 preset number

Outlets

None

Declaration
int ntrig;
int prev;
Init
ntrig = 0;
Control Rate
if (!(inlet_preset == prev) && !ntrig) {
  parent->ApplyPreset(inlet_preset);
}
prev = inlet_preset;

Privacy

© 2024 Zrna Research