basaveload

Author:
License: GPL
Github: sss/test/basaveload.axo

Inlets

None

Outlets

None

Parameters

int32 pattern

bool32.mom load

bool32.mom save

Attributes

objref a1

objref a2

objref a3

objref a4

objref a5

objref a6

objref a7

objref a8

Declaration
bool ld, sv;
Control Rate
attr_a1.channel = 0;
attr_a2.channel = 1;
attr_a3.channel = 2;
attr_a4.channel = 3;
attr_a5.channel = 4;
attr_a6.channel = 5;
attr_a7.channel = 6;
attr_a8.channel = 7;
int pattern = (param_pattern - 1) * 96 * 8;
if (param_save && !sv) {
  sv = 1;
  attr_a1.save = 1;
  attr_a2.save = 1;
  attr_a3.save = 1;
  attr_a4.save = 1;
  attr_a5.save = 1;
  attr_a6.save = 1;
  attr_a7.save = 1;
  attr_a8.save = 1;
  attr_a1.pattern = pattern;
  attr_a2.pattern = pattern;
  attr_a3.pattern = pattern;
  attr_a4.pattern = pattern;
  attr_a5.pattern = pattern;
  attr_a6.pattern = pattern;
  attr_a7.pattern = pattern;
  attr_a8.pattern = pattern;
} else if (!param_save && sv) {
  sv = 0;
  attr_a1.save = 0;
  attr_a2.save = 0;
  attr_a3.save = 0;
  attr_a4.save = 0;
  attr_a5.save = 0;
  attr_a6.save = 0;
  attr_a7.save = 0;
  attr_a8.save = 0;
}
if (param_load && !ld) {
  ld = 1;
  attr_a1.load = 1;
  attr_a2.load = 1;
  attr_a3.load = 1;
  attr_a4.load = 1;
  attr_a5.load = 1;
  attr_a6.load = 1;
  attr_a7.load = 1;
  attr_a8.load = 1;
  attr_a1.pattern = pattern;
  attr_a2.pattern = pattern;
  attr_a3.pattern = pattern;
  attr_a4.pattern = pattern;
  attr_a5.pattern = pattern;
  attr_a6.pattern = pattern;
  attr_a7.pattern = pattern;
  attr_a8.pattern = pattern;
} else if (!param_load && ld) {
  ld = 0;
  attr_a1.load = 0;
  attr_a2.load = 0;
  attr_a3.load = 0;
  attr_a4.load = 0;
  attr_a5.load = 0;
  attr_a6.load = 0;
  attr_a7.load = 0;
  attr_a8.load = 0;
}

Privacy

© 2024 Zrna Research