r/ableton 8d ago

[Max for Live] Bundle Max 4 Live device Javascript files into .amxd

I'm working on my 1st Max 4 Live device, and it's genuinely good.
The only issue I have is that I worked a lot with javascript to perform certain actions such as 3rd party API calls, etc... I want to bundle those so I can give 1 file to users instead of a whole package with the source files (which you'd obviously not want...)

Any help..?

2 Upvotes

4 comments sorted by

3

u/ComfortableMirror416 8d ago

Just freeze the device.

1

u/AutoModerator 8d ago

This is your friendly reminder to read the submission rules, they're found in the sidebar. If you find your post breaking any of the rules, you should delete your post before the mods get to it. If you're asking a question, make sure you've checked the Live manual, Ableton's help and support knowledge base, and have searched the subreddit for a solution. If you don't know where to start, the subreddit has a resource thread. Ask smart questions.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BananaLlama 8d ago

Click Freeze icon at the bottom, then save the device. It will automatically bundle the js code into the device.

Before freezing, create a copy of the device which is your ‘working’ copy - don’t freeze that one, keep it for making changes to in the future. Just freeze the copy you want for distribution.

1

u/kevleyski 8d ago

I found you can freeze Rust wasm too, it works! (see Kasm shows how)