Forums > MaxMSP

filling~ buffer with folder and umenu


Nov 02 2011 | 6:22 pm

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.

could anyone help?

-- Pasted Max Patch, click to expand. --

[attachment=174993,2812]

Attachments:
  1. folder.jpg

    folder.jpg

Nov 02 2011 | 6:36 pm

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

Nov 02 2011 | 6:49 pm

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.

Nov 02 2011 | 6:58 pm

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?

Nov 02 2011 | 7:07 pm

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

Nov 02 2011 | 7:39 pm

I am glad I could help ;)

olivier

Dec 07 2011 | 12:22 pm

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?

Dec 27 2015 | 12:41 am

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?

Dec 27 2015 | 9:50 am

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

Dec 28 2015 | 6:52 pm

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

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


-- Pasted Max Patch, click to expand. --

Dec 28 2015 | 7:47 pm

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

Viewing 11 posts - 1 through 11 (of 11 total)

Forums > MaxMSP