tcopy paste

Author:
License: GPL
Github: rbrt/data/tcopy paste.axo

Inlets

int32.positive src

int32.positive dst

bool32.rising copy

bool32.rising paste

Outlets

None

Attributes

objref table

spinner range

Declaration
bool ctrig;
bool ptrig;
int32_t cdata[attr_range];
Control Rate
if (inlet_copy && !ctrig) {
  ctrig = 1;
  int i;
  for (i = 0; i < attr_range; i++)
    cdata[i] = attr_table.array[i + inlet_src];
}
if (!inlet_copy)
  ctrig = 0;

if (inlet_paste && !ptrig) {
  ptrig = 1;
  int i;
  for (i = 0; i < attr_range; i++)
    attr_table.array[i + inlet_dst] = cdata[i];
}
if (!inlet_paste)
  ptrig = 0;

Privacy

© 2024 Zrna Research