< Back to IRCAM Forum

Can you load a whole folder into just one singular buffer?

Is there a way to make it so when you load a folder of sounds into MuBu, it automatically gets put into one buffer instead of each sound being in a different one? Thanks!

Hi,
just call readfolder without defining @name attribute. Each sound file will be loaded into a different track, but in the same buffer.
Best

1 Like

also FluCoMa does this well

Hi Blair and Seraphim, thanks for this use case!
This is easy using track copy/paste and a temporary mubu. Here’s a little abstraction that does it for you. However, I think this could be a future option for the readfolder message.

mubu.concataudiofiles.maxpat (14.1 KB)
mubu.concataudiofiles.maxhelp (8 KB)

1 Like

Hey schwarz, using this approach, is it possible to have a mubu.process run
[mubu.process corpus audio descr:chop @name descr @process 0 @progressoutput input @timetagged 1 @chop.size 45 @chop.mean 1]

on all tracks within the buffer?

Hi,

  1. in my approach above, there is only one buffer and one audio track, so mubu.process will work fine. However, the chop in your pipo chain will sometimes combine the end of a sound file with the (concatenated) beginning of the next one into one segment.
  2. With readfolder without @name there will be many audio tracks in one buffer, which doesn’t play well with mubu.process and does not make sense for a corpus.
  3. The best approach for loading and analysing a whole corpus is readfolder @name audio, which creates one buffer per sound file, each with one audio track, and this is handled perfectly well by mubu.process, which adds a segment+descriptor track for each buffer.

Best, Diemo

1 Like