Download OpenMusic User`s Manual
Transcript
Chapter 3. Patches Abstracting cannot be undone. You can, however, create a new patch and drag the entire contents of the abstraction from its window to the patch window. Inputs and outputs must be recreated from scratch in the new patch window, since they cannot be copied. Abstractions may be created from scratch by command-clicking in the patch window background and typing patch for a patch abstraction and maquette for a maquette. Patch abstractions are useful for organizing complicated patches. Putting related sub-functions in a specially created and named subpatch abstraction makes your patches easier to understand and reduces clutter. Contextual menus Holding ctrl while clicking in the patch window or on an object brings up a contextual menu. On the patch window background, this menu has two choices: comment allows you to add a comment box, which contains text of any kind about the patch. The other option is last saved, which reverts the patch to its last saved state. Useful because there is no Undo in OM. On patch objects, the option update doc checks for new or deleted inputs and outputs, changes to input definitions and documentation within the patch, and updates the patch icon. This is sometimes necessary when adding new inputs to a patch you are using in another patch. On other objects, you have the option to evaluate the patch, to show or hide the object state button (see below), to copy the item (equvalent to option-dragging it), to get info on the object (equivalent to selecting it and hitting command-i), and import or export an object from the Finder (also possible with drag & drop - see the chapter on the Workspace for more information. Object states Objects (both factories and classes) in OM have five modes, or states, which affect the results of evaluation. In its normal state, a box returns the results of whatever operation it performs (for functions) or slot you evaluate (for classes). In addition, there are four special states. They are activated by selecting an object and hitting b, or by choosing s/h boxes from the contextual menu. When you do this, a small box appears in the upper left corner of the icon representing its special state. You can cycle through the four states by clicking the small box, or return the object to its normal state by hitting b again. The four states are: 38 Ircam documentation