Ah, the live coding aspect wasn’t clear.
Within ProxySpace, you can’t even manage one file in that simple way:
s.boot;
p = ProxySpace.new.push;
~buffer = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
ERROR: 'prepareForProxySynthDef' should have been implemented by Buffer.
… because a Buffer does not directly do signal processing or generation (whereas a Function can do the former, and a Pattern can do the latter). Neither does a List. You can’t store either of these directly in a ProxySpace.
Try this:
if(currentEnvironment.isKindOf(ProxySpace).not) {
p = ProxySpace.new.push;
};
q = (); // Event i.e. a dictionary
q.buffers = List.new;
Dialog.getPaths({ arg paths;
paths.do({ |soundPath|
soundPath.postln;
q.buffers.add(Buffer.read(s, soundPath));
}); // btw: please close brackets at the same level
});
hjh