fileiterator: syncing only at the end.

nix
Pierre Alexandre Tremblay 6 years ago
parent d589b1ba3f
commit ab924f8655

@ -28,8 +28,8 @@ FileDialog.new({|selection|
f.postln; f.postln;
("Loading"+(i+1)+"of"+total).postln; ("Loading"+(i+1)+"of"+total).postln;
Buffer.read(s, f.asAbsolutePath,action:{arg tempbuf; FluidBufCompose.process(s,tempbuf,destination:b,destStartFrame:c[i],action:{tempbuf.free});}); Buffer.read(s, f.asAbsolutePath,action:{arg tempbuf; FluidBufCompose.process(s,tempbuf,destination:b,destStartFrame:c[i],action:{tempbuf.free});});
s.sync;
}; };
s.sync;
("loading buffers done in" + (Main.elapsedTime - t).round(0.1) + "seconds.").postln; ("loading buffers done in" + (Main.elapsedTime - t).round(0.1) + "seconds.").postln;
}.play; }.play;
}, fileMode:2); }, fileMode:2);

Loading…
Cancel
Save