Including an audio file in AMXD

FineCutBodies's icon

Hi guys,

I would like to include a few audiofiles in the amxd file. But somehow I can't solve it... but found this:

"A frozen device contains files it needs to operate. These files might include subpatchers, audio files, image files, Javascript code, or third-party Max external objects. If your device opens files during its operation (such as a folder of samples or images), you may need to add these files as dependencies before freezing."

So if I load a sample into a buffer object, then Freeze and save the device, I thought it should include the WAV file, next time I open the frozen device... But it's not, so i thought i should add the files as explicit dependencies as written here:

But my View/Dependencies menu is grey and not clickable...

Any idea what I do wrong?

thanx in advance,
Kevin

kleine's icon

You can save your max device as a consolidated project, then freeze the device.
If you then read from the consolidated files into a buffer, it should be fine.
I did that e.g. here:
http://www.maxforlive.com/library/device/1511/m4l-vinyl

Best,
Christian

FineCutBodies's icon

Thanx Christian, will try it now, althought i don't see what's the connection beetween a separate Max4live device and a consolidated ableton project (as i know consolidating means only copying the files into the project directory, but an amxd file don't have a project directory)... So if there is any, hope Ableton or Cycling will do some documentation on it...

btw, wanted to check your device, but it crashes my live (9.1.1).. strange...

FineCutBodies's icon

Just tried, but still didn't include any of the files in the buffer~ objects...

11OLSEN's icon

look for "show containing project" on the bottom toolbar. there you can add files before freezing. use loadbang to load the soundfile at device initialization. O.

The use of the Dependencies Window is deprecated as of version 6.1 of Max, and the functions associated with it have migrated to Projects.
https://cycling74.com/docs/max6/dynamic/c74_docs.html#live_dependencies

FineCutBodies's icon

Ahh thanx Olsen, works perfectly... didnt hear about this change, but solved my problem :D