Hi!
I’ve been trying out the examples of Flucoma but I am a little bit lost about how to execute small modifications. As far as I have read, most of the code assumes that you either slice a long soundfile with an onset detector or load short soundfiles locates in a single folder (which will also be segmeted using something like FluidBufOnsetSlice
).
So, first, how to build a dataset when you have a folder with already sliced audio (e.g. a sample library)?
Second, is there a built in way to recursive load all the audio files from folder and subfolders? Any Flucoma or Sc native implementation?
What I have found so far is this proposition on the list:
https://listarc.cal.bham.ac.uk/lists/sc-users/msg69330.html
This is the example I am trying to modify:
I am trying this without success:
(
~concatBuffers = {
~bigBuff = Buffer.alloc(s, 5*60 * s.sampleRate);
PathName(~path).entries.do{
arg subfolder;
var counter = 0;
subfolder.entries.do{
arg item, i;
var tempBuf;
tempBuf = Buffer.read(s, subfolder.entries[i].fullPath);
// FluidBufCompose.processBlocking(s, tempBuf, startFrame:counter,numFrames:tempBuf.numFrames,destination: ~bigBuff);
FluidBufCompose.process(s, tempBuf, startFrame:counter,numFrames:tempBuf.numFrames,destination: ~bigBuff).wait;
tempBuf.free;
counter = counter + tempBuf.numFrames;
}
};
};
)
~concatBuffers.()
When using the .processBlocking
I am getting the error:
ERROR: binary operator '+' failed.
When using the .process
together with .wait
I am getting the error:
ERROR: yield was called outside of a Routine.
ERROR: Primitive '_RoutineYield' failed.