Common Music Notation
Prev | Chapter 7. Outputs | Next

## Common Music Notation

This backend produces files in Lisp syntax suitable for loading and processing with Common Music Notation. The `OUTPUT` setting for this is `:CMN`. A `.cmn` extension is added to the base filename to make the complete output filename. The file can be compiled and viewed automatically if CMN is loaded and an `.eps` file viewing application (a PostScript viewing application in Gnome or KDE or the Preview application in OS X) has been found or is specified by the user.

### CMN Options

`:FILENAME` | `:SCORE-ATTR` | `:VIEW-OPTS`
`:PROCESS` | `:OUT-EXT` |
`:VIEW` | `:VIEW-EXE` |

### Alphabetical Listing of Options

`:FILENAME`

  This is a string representing the output filename. It overrides the `FILENAME` setting if used.

`:OUT-EXT`

  This is a string specifying the extension for the output filename that is created when the score file is loaded and CMN is called. The default is `"eps"`.

`:PROCESS`

  If set to `T`, indicates that FOMUS should load the score file and call CMN to process the output file once it's been written. If set to `NIL`, only the output file is written and no processing occurs (unless `VIEW` is set to `T`).

`:SCORE-ATTR`

  This is a list of extra CMN score attributes to be inserted into the score file. The default is `NIL`.

`:VIEW`

  If set to `T`, indicates that FOMUS should load the score file and call CMN to process the output file, then open the results with a viewer program for immediate viewing. If set to `NIL`, no viewer application is opened.

`:VIEW-EXE`

  This is a string specifying the path and filename to the executable for the viewer application. The full pathname may or may not need to be specified depending on the Lisp implementation. The default application depends on what is installed on the user's machine, and should be an application appropriate for viewing PostScript or EPS files. This overrides the `CMN-VIEW-EXE` setting if used.

`:VIEW-OPTS`

  This is a list of strings representing options to be passed to the viewer application executable. It overrides the `CMN-VIEW-OPTS` setting if used.

Prev | Up | Next
MusicXML for Finale | Home | MIDI