Is there an option in maxmsp to view code ?

MoD1's icon

im new to maxmsp and i come from a programming background so i need to see a logical process of script, how and what the hell is going on.
i cant find anything on the crazy menu system and the buttons don't help.
you cannot learn a process without knowing what the data and math is doing.

i had to read the help file just to find the search option in the forum !!

Roman Thilenius's icon

in some cases the code used in compiled objects is explained in the helpfile, in others not.

the basic idea of enviroments like maxmsp is that you should _not be forced to know what is going on inside an object.

instead of that, the "factory" externals as well as many other externals or patches follow a few guidelines and are otherwise more or less self explanatory.

lets look at [mtof], for example. if you look at the objects helpfile, you will find what math is used inside. on the other hand, normally you do not need to know what formula is used inside, all you need to know is that you can use it to convert note numbers to hertz.

the in and out part is something the majority of objects share. data triggered from the same input for example is usually causing output at many outlets in the manner of right-to-left. right-to-left is also how inputting works.

only sheduling and threading is a bit more difficult, you had to know by heart (or guess) which 15 of the factory externals require the high priority thread ("overdrive") beeing turned on in order to work.
it is easy to understand why [delay] or [metro] benefit from high prioroty, it is a bit more difficult to take that into account for the [line] object.

goodparleyandorfing's icon

Roman's right, but also partly not right. If you are doing audio coding, and you use Gen~, then a description of the signal flow in code can be displayed by opening the 'code' panel. It isn't the C code in which Max is written, but Gen's own GenExpr language, an 'implementation agnostic' language.

Roman Thilenius's icon

& have a look at the SDK.

phiol's icon

also using a (full_source_code) message to gen~ jit.gen jit.gl.pix
is a good way of learning what's going on in gen.