Forums > MaxMSP

patch relative filepath

May 01 2012 | 9:05 pm


I’ve googled around and here too, but couldn’t find a solution to make a patch loading samples to play in some sfplay~ objects with a PATCH relative filepath…

I used to make it pretty easily in PD, I can’t believe it’s so complicated in max/msp…

I have to put it into another computer.

May 01 2012 | 10:53 pm

Send the word
to [thispatcher] and get the relative path from the right outlet. The patch must be saved as a file to get a path.

The example below works only for regular Max patches, for applications you need a different method.

— Pasted Max Patch, click to expand. —


May 02 2012 | 6:54 am

will this work if the patch is opened on another computer with the max runtime ?

thank you anyway !

May 02 2012 | 7:54 am

I saved the patch, put it in another folder, opened with Max runtime, worked. So yes, must be the same on another computer as long as there is Max installed.

May 02 2012 | 8:38 pm

I took a slightly different approach to this problem. I create an abstraction with pretty much the same code (path to thispatcher) but I give it an inlet and outlet and then throw it in the root folder of a particular environment. E.g, the code below is stored in a file called CurrentRigRoot in a folder that contains all the patchers and related files used for a particular live rig.

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

I can then work with a new patcher, before even saving it, and have access to stuff I need, relative to the location where CurrentRigRoot is saved.


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

I have a few of these abstractions, suitably named, deployed in important places – for example, there’s one called CurrentPatchRoot that is stored in a folder where all my .fxp files are to be saved and then I can easily access that from anywhere as well.

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

Forums > MaxMSP