Embed javascript in M4L object?

Pvdn's icon

I'm creating a max for live device, and i was wondering if there is a way to make one single file out of it (for easy use/install) since i'm using javascript (and obviously an external js file).

KrisW's icon

yes sure , you need to FREEZE your device before saving . u will see in MAX WINDOW what is included in your file . definitely your JS will be present

Pvdn's icon

Ah, thanks. What does freezing do exactly?

KrisW's icon

it is simply including all the externals ,[poly~]s ,saved subpatchers ,bpatchers into the file ,so you dont need to port anything all the time while moving file here or there :)

benj3737's icon

what about @embed?

Julien Bayle's icon

Nowadays, in my opinion, the best way today is v8.

Not just for having the code embedded by default, but for v8 of course. But indeed, it embed the code (you can disable it through inspector) by default too.

Martin Olavarria's icon

@Julien V8 makes sense but, is Live shipping with Max 9 already? I know you can change the default Max engine, but for extended backwards compatibility would be a good idea to use the old engine?

tyler mazaika's icon

@Martin: Live 12.2 released in June supports Max 9

You’re right though about Live 11.