filling~ buffer with folder and umenu

nedrush's icon

having a bit of trouble working out how to choose files to load into a buffer using a umenu, folder and drop file.

figured prepending a read message with the output of the unmenu would do it but it dont.

Max Patch
Copy patch and select New From Clipboard in Max.

could anyone help?

2812.folder.jpg
jpg
Olivier Sebillotte's icon

Hi,

first, you have to send the [umenu] directly into the [buffer~] , but I guess you know that.

Then need you folder in Max's radar (search path).
because you just send a relative path to [buffer~] so it can't find the file on your hard disk.

Unless the folder is located next to your patcher, you have to add the folder to max's search patch using "options/file preferences"

olivier

nedrush's icon

thats worked out great. for a long time i have heard people mention the max search path and i thought it meant everything in the max folder, didnt realise you could choose other folders without having them in the max folder. great help cheers.

nedrush's icon

so i figured adding my sample library as a user file path would be a good idea but its crashing max, maxforlive and ableton.

is adding large folders of large files a bad idea? this folder is only 16gig, and clearly its not 'moving' the whole folder, its just looking at it right?

nedrush's icon

its ok, just needed a bit of time to sort itself out. ignore me.

Olivier Sebillotte's icon

I am glad I could help ;)

olivier

nedrush's icon

so i made a drum player using 16 sfplays~ and 16 folder objects to drag folders of kicks and snares into it so change different sounds, saved it im am ableton set, then when i reloaded it the sound had gone and i had to drop them in again. do i need to tell a patch using folder object to remember the path?

exeterdown's icon

Unless the folder is located next to your patcher, you have to add the folder to max’s search patch using "options/file preferences"

What if the folder is located next to the patcher?
How would you get a umenu to autopopulate with the contents of a folder located in the patchers directory on load?

Christopher Dobrian's icon

Exeterdown, I think these two examples may be useful to you.Providing a full path nameUsing the full path when opening a file

exeterdown's icon

Woah, thanks Christopher!

That [thispatcher] object is exactly the solution I've been looking for, as I needed to look for a folder where ever the patcher was located.
I've attached my solution to the problem if anyone is curious. You just have to save the patch, with a 'sounds' folder - just like the one in Christopher's example - http://music.arts.uci.edu/dobrian/s14/music147/maxpatches/tones.zip

Max Patch
Copy patch and select New From Clipboard in Max.

Also, why the [deferlow] in your original patch?

Christopher Dobrian's icon

The reason for the [deferlow] is provided in the explanatory text of that example page.