|
Figure 2 shows an example of an OpenMusic patch that is directly mappable to the following shell script:
The script extracts the first voice of a Kern score file, the name of which is given in the first argument. On the result it applies an operation that selects a range of barlines. Two such selections are pasted side by side for whatever study purposes. The data passing techniques used here are file redirection (through >), file referencing and the use of pipes (with |). The control flow techniques are linear (pipes, no keyword necessary in the patch) and parallel (sequence keyword in the patch, newlines in the script). Note that there need to be only one box for the two extract function calls.
|