Load Folder

Load a folder of sounds to arrays. It will load them stereo files in to tables named prefix_L_0 prefix_R_0 and so on. You can set the prefix to whatever you want with an argument.


1: buffer prefix. This is the name your tables will have. If you set the prefix to sound your tables will be sound0, sound1, sound2 and so on.

2: How many files to load. Tables are created dynamically.

3: Folder destination. This should be the relative or absolute path to the folder. The files in the folder should be named _0.wav, _1.wav and so on.

Oh! And if its a relative path it’s relative to where you put the folder abstraction..

NOTE! If you save the folder.pd patch after you’ve created it it wont work. If it doesn’t work just open it and remove all tables from [pd $0-table] and save it again. That subpatch needs to be empty.

1772 PM
  • Platform:
  • Category: Utility
  • Views: 1,727
  • Modified: 3 years ago
Chat about this patch on Discord! Download (84)
3 comments on “Load Folder
  • korhanerel on said:

    Haven’t tried it yet, but this is a great utility patch! Thank you!

    P.S. Not that it’s a huge problem, but you may want to change the argument numbers to the correct ones in the patch. They go 1, 3, 4 in the patch instead of 1, 2, 3.

  • Max Björverud on said:

    Oh! Thanks! I’ll change that. Used to have 4 arguments

  • baptiste on said:

    You can send a [clear< message to [pd $0-table] to empty the subpatch before recreating tables.

  • Leave a Reply