device freeze - how to include resource files ?

Learn about building and using Max for Live devices.
Post Reply
monohusche
Posts: 190
Joined: Thu Jan 22, 2009 4:28 pm
Location: Hongkong

device freeze - how to include resource files ?

Post by monohusche » Tue Jan 26, 2010 6:03 pm

Hi there,

I'd like to distribute a device which also allows you to load predefined waveforms for modulation purposes (aiff files). As the files are not directly referenced by the patch, I doubt that they would be included automatically.

Basically, the question is whether there is some equivalent to the "Build Collective/Application" menu item of pure Max for M4L devices ?

thx, nick

andrewbenson
Posts: 55
Joined: Tue Sep 01, 2009 4:42 pm

Re: device freeze - how to include resource files ?

Post by andrewbenson » Tue Jan 26, 2010 6:08 pm

Check out the Dependencies window. It's awesome. It's your friend.

AB

monohusche
Posts: 190
Joined: Thu Jan 22, 2009 4:28 pm
Location: Hongkong

Re: device freeze - how to include resource files ?

Post by monohusche » Tue Jan 26, 2010 6:16 pm

sweet, cheers...the answer I was hoping for

monohusche
Posts: 190
Joined: Thu Jan 22, 2009 4:28 pm
Location: Hongkong

Re: device freeze - how to include resource files ?

Post by monohusche » Wed Jan 27, 2010 9:44 pm

one more question:

what's the elegant solution to relatively reference resource files based on the (frozen) device location ?

Let's say, there is a frozen M4L device which contains an additional folder with resource files (e.g. LFO waveforms). The idea is to autopopulate a umenu with the found files, the only problem for me is that all file related max objects only refer to the Max directory and don't provide the location of the device file itself.

thx nick

monohusche
Posts: 190
Joined: Thu Jan 22, 2009 4:28 pm
Location: Hongkong

Re: device freeze - how to include resource files ?

Post by monohusche » Wed Jan 27, 2010 10:04 pm

Ok, so I tested it. Basically, I added an explicit folder dependency to the device (via the Dependencies window), froze the device, saved and unfroze. The result was another subfolder within my "Unfrozen Max Device Files" folder (Desktop) which contained the resource files from the added folder "flattened", meaning that the originally added subfolder was gone.

So as I can't refer to the subfolder as this won't be existing after distributing the device to somebody else, I need to refer to the files (or file names) statically within my umenu. This will resolve the issue of finding the files (the freeze/unfreeze process takes care of that, but I am forced to manually extend the umenu initial state when adding new files as resource files. sucks a little bit but not too much....

any other idea, anyone ?

nick

Post Reply