Contexts

There is always a current Mup "context" that is in effect. When Mup begins reading input, it is operating in "music" context, which is where music, lyrics, barlines, and other related things are described. You can change to another context by entering its name. A context remains in effect until another context is named.

The contexts are:

header
to define what goes at the top of the first page, typically the title, composer, etc.
footer
to define what goes at the bottom of the first page, typically a copyright notice, performance notes, etc.
header2
to define what is to be printed on the top of pages after the first page.
footer2
to define what is to be printed on the bottom of pages after the first page.
score
to define parameters that apply to the entire score.
staff S
to define parameters to be used for staff S, where S is a number from 1 to 40.
voice S V
to define parameters for a particular voice V on staff S. The voice V can be either 1 or 2. S is a staff number from 1 to 40.
grids
to define grids (typically for guitar)
music
to define everything else. This includes notes, lyrics, bar lines, phrase marks, tempo and dynamic marks, etc.

All contexts except music are optional: a given input file may exclude some of them. The header, footer, header2, and footer2 contexts may be placed anywhere in the file, but each can be used only once. The other contexts may appear any number of times in any order, and the order in which they occur is significant in determining the output produced.


Mup User's Guide Table of Contents