How to use code in a M4L device

Vim Cortez's icon

Newbie question here.

I'm trying to use code generated by AI to build a M4L device. But I haven't yet found how to do that - basically, where should I paste the code? when editing a M4L device from within Live, I can't seem to find a window or menu to paste my code.

Thanks in advance for any pointers - I'm completely new to this but internet searches haven't yielded any results I can make sense of.
Vim

Anthony Henderson's icon

What code? If you're trying to build a custom external, start here: https://github.com/Cycling74/min-devkit

Vim Cortez's icon

ChatGPT gave me a Max for Live script: I don't know where to paste it.

Roman Thilenius's icon

i think you can only paste json fractions into a patcher window when it is correct and contains at least objects with everything they need (position & co)

Vim Cortez's icon

Thanks Roman. I'll try that. Can a M4L device be edited within a text editor?