getdir_new

load table from sdcard
Author: Johannes Taelman
License: BSD
Github: rbrt/testing/getdir_new.axo

Inlets

int32.positive index

Outlets

bool32 trig

int32 test

charptr32 out

Attributes

table filter

objref SDapi

combo directory

Declaration
int prev;
char out[9];
Control Rate
outlet_trig = 0;

if (inlet_index != prev) {
  prev = inlet_index;
  if (attr_directory)
    attr_SDapi.getdir("/", "attr_filter", prev);
  else
    attr_SDapi.getdir("", "attr_filter", prev);
  memcpy(&out[0], &attr_SDapi.fname_flt[0], 16);
  outlet_trig = 1;
}

outlet_out = &out[0];

Privacy

© 2024 Zrna Research