Importing/Exporting Factory Box Values
Instances Files
The current value of a factory box can be exported or imported as a file to or from any location in the computer. Exporting an instance is a means to preserve the musical result of a computation.
Both procedures take place in the patch editor, via a contextual menu. Instances are identified by the .omi extension - “i” for “instance”.
Export Procedure
-
To export the instance from a factory box,
Ctrl
/ right click on the box and select “Export”. -
Choose an export location and file name on tyour hard-disk.
Import Procedure
-
To import an instance in a factory box,
Ctrl
/ right click on the box and select “Import”. -
Choose a .omi file to import.
Compatibility
Mind importing a suitable instance file in a given factory editor. In case of incopmpatible object, OM will display an error message and the box contents won’t be modified.
It may be more convenient to create an instance box[1] out of the box value. Instance boxes can be saved as global variables[2] in a dedicated package of the Library, the Globals package.
About Instances and Global Variables, See :
External File Formats
Some objects (particularly, musical object) can be imported/exported from/to standard external formats (e.g. MIDI, MusicXML, etc.)
In this case, some additional options will be displayed in the Import and Export menus.
Importing/Exporting Score Objects
References :
- Instance
An actual object created at runtime, out of a given class. In OM, more specifically, an object created when evaluating a factory box. An instance can be saved as a global variable.
⤷ SHIFT
click on an outlet - especially the first outlet representing the
self, the whole object - of a factory box to materialize an instance.
- Global variable
An instance of OM object that has been saved in order to be used in other
programs. Global variables are visible from the Library
window and stored as
.omi files in the Globals
folder of the workspace.
Contents :
- OpenMusic Documentation
- OM User Manual
- Introduction
- System Configuration and Installation
- Going Through an OM Session
- The OM Environment
- Visual Programming I
- Visual Programming II
- Basic Tools
- Score Objects
- Maquettes
- Sheet
- MIDI
- Audio
- SDIF
- Lisp Programming
- Errors and Problems
- OpenMusic QuickStart