OpenMusic

Visual Programming | Computer-Assisted Composition

Navigation : Previous Next

Introduction to the File-Box

Programming with the File-Box takes place in an internal editor, which resembles the OMLoop editor. Like OMLoop, File-Box can only be evaluated from outside the editor, in its container patch.

Iterations : OMLoop

StreamFile : a Pointer to Read and Write Files in File-Box

This editor has one main additional feature : the StreamFile box.

Features

StreamFile is an indispensable element for the File-Box : it is required to read from a file, or write to a file.

The StreamFile box represents a file pointer , that is :

Usage

To add another StreamFile box, click on the icon in the upper right corner of the window.

Reading and Writing Files in File-Box : Functions of the “Files” Package

A number of functions of the package are used for writing or reading files in the Text-Box.

Access

To access these functions, go to Functions / Kernel / Files.

Features

Using Related Functions:

Inito

The Initdo module performs an action before the iteration starts. It is a useful tool to read or write file headers.

Using Initdo in Iterative Processes:

Contents :

Navigation : Previous Next