load i

Stops current patch, and loads a patch from sdcard, selected by index in the patch bank file. If the index is out of range, the sdcard startup patch is loaded instead.
Author: Johannes Taelman
License: BSD
Github: patch/load i.axo

Inlets

bool32.rising trigger

int32.positive index

Outlets

None

Declaration
int ntrig;
Init
ntrig = 1;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  int i = inlet_i;
  if (i < 0)
    i = 0;
  LoadPatchIndexed(i);
  ntrig = 1;
} else if (!(inlet_trig > 0))
  ntrig = 0;

Privacy

© 2024 Zrna Research