[Sharing] Commandline Interface for Max [live code your patch!]

tmhglnd's icon

Download here: https://www.patreon.com/posts/max-commandline-24444720?fbclid=IwAR2l-XDHvYXqffP5Lhz2SP72KMRIx9rjNq6cP_u9tork9Z-vZX7DrLs0BHw

I'm a big fan of live coding, and have been working on my own livecoding interface for quite a while now. Now I want you to share in some of the fun, and that is why i release this commandline texteditor for max, that you can easily add to your own audiovisual projects to control parameters (or even more) in your max patch live as a performance! You can use it however you like! If you have requests for additional features, let me know. If there are some bugs, let me know as well of course. Follow the instructions in the helpfile and example patcher to get the idea of how it works. Sidenote: not tested on windows.

Live coding is starting to become more and more popular. As a new form of performance, as a way of showing transparency to the audience in what you are doing, as a challenge for the performer to come up with interesting code on the fly and as a way of exploring the computer, creative coding and improvisation. Because coding entirely from scratch is a hard task, it can be helpful to prepare some code beforehand, and then perform with that on stage by for example adjusting parameters. This command-line text editor lets you achieve just that! Build your entire audio/visual performance in max, and use the command-line to adjust parameters and play with it.

This is a command line text editor (similar to the workflow of the terminal) for the opengl world of Max build in javascript. Add the object to your setup and initialize it with the name of the render context. Then make sure you send it the render bang in the top inlet. The outlet outputs the typed text as a list that you can use in any way you like. To for example control parameters of gl objects, but it can also be used for controlling musical parameters, lighting shows, whatever you think of! Hope you like it and enjoy!

stoersignal's icon

sounds interesting! is this strictly for openGL?

tmhglnd's icon

The visual interface of the commandline (typing the text, history, console) is specifically made for the opengl world. But the output messages that you type can be controlling anything you want inside your patcher. So if you want you can have a black screen with white text, and let the output control parameters of audio or data!

Joel's icon

WHAT! Fantastic! I'm excited

tmhglnd's icon

Made a short introduction video:

ALPHY PSYCHE's icon

Holly molly . i love this stuff . its great to have live code lines to work with gl . super cool

ALPHY PSYCHE's icon

but i couldn't find th.gl.commandline object

tmhglnd's icon
ALPHY PSYCHE's icon

thanks buddy

tmhglnd's icon

This abstraction has been extended with a [th.gl.texteditor] that you can use as overlay in your Jitter window to code multiple lines.

Further description and download here: https://cycling74.com/forums/-sharing-texteditor-interface-for-jitter-live-code-your-patch!

Nadeem Al-Haj Zein's icon

Im having an issue where the command line text isn't showing up as im typing until I excute it. Any fixes?

tmhglnd's icon

Thanks for catching this bug. I think it was because of a layering issue and should be fixed now, you can find the latest version here: https://github.com/tmhglnd/th.gl.commandline

Nadeem Al-Haj Zein's icon

Thank you appreciate the fix :))