MxDocument:
Filter:
Mx/Classes (extension) | Mx

MxDocument
ExtensionExtension

a wrapper for placing code Documents onto the Mx grid

Description

This is for adding code documents to an Mx.

The contents of the document will be saved with the Mx. If the document is saved (command-S and just save it as you would normally) then the Mx will save the path of the file instead of the contents.

You can add any previously existing document.

The document will execute when it is loaded.

The document has the environment of the unit. Any v

See MxUnit/varPooling for sharing variable spaces between units and documents. You can set variables in your document and other documents can listen downstream for those.

These examples arent so exciting since you can more easily do this in a normal source code file. There isnt an advantage to having the document in the Mx

The plan:

Dragging documents onto the grid will be supported.

You can of course always just place a bus or a Ndef or similar onto the Mx in order to get an audio input injected to the mixer.

Possibly settings or different classes for live coding documents (that do not executed when loaded like this one does) and documents that s

Class Methods

.new

Arguments:

path
content

Instance Methods

.eval

.path

.content

.name

.printOn

Arguments:

stream

.storeArgs

.gui

Arguments:

parent
bounds