chiark / gitweb /
Import upstream version 5.3.
[mup] / mup / docs / uguide / contexts.html
CommitLineData
fac14bbe
MW
1<HTML>
2<HEAD><TITLE>
3Mup Contexts
4</TITLE></HEAD>
5<BODY>
6<P>
7&nbsp;&nbsp;&nbsp;<A HREF="gensyn.html">&lt;-- previous page</A>
8
9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="music.html">next page --&gt;</A>
10</P>
11
12<H2>
13Contexts
14</H2>
15<P>
16There is always a current Mup &quot;context&quot; that is in effect.
17When Mup begins reading input, it is operating in &quot;music&quot; context, which
18is where music, lyrics, barlines, and other related things
19are described. You can change to another
20context by entering its name. A context remains in effect until
21another context is named.
22The contexts are:
23<DL>
24<DT>
25<A HREF="headfoot.html">header</A>
26<DD>
27to define what goes at the top of the first page, typically
28the title, composer, etc.
29<DT>
30<A HREF="headfoot.html">footer</A>
31<DD>
32to define what goes at the bottom of the first page,
33typically a copyright notice, performance notes, etc.
34<DT>
35<A HREF="headfoot.html">header2</A>
36<DD>
37to define what is to be printed on the top of pages after the first page.
38<DT>
39<A HREF="headfoot.html">footer2</A>
40<DD>
41to define what is to be printed on the bottom of pages after the first page.
42<DT>
43<A HREF="headfoot.html">top</A>
44<DD>
45to define what is to be printed on the top of page.
46This gets printed below the header (or header2), if any.
47If the output is not already at the beginning of a new page,
48a new page is started.
49Unlike header, which can only be used once, and is used only on the very
50first page, top can be used multiple times. In a song with multiple movements,
51you might use top to put a title at the beginning of each movement.
52<DT>
53<A HREF="headfoot.html">bottom</A>
54<DD>
55to define what is to be printed on the bottom of page.
56This gets printed above the footer (or footer2), if any.
57If the output is not already at the beginning of a new page,
58a new page is started.
59Unlike footer, which can only be used once, and is used only on the very
60first page, bottom can be used multiple times.
61<DT>
62<A HREF="headfoot.html">top2</A>
63<DD>
64to define what is to be printed on the top of pages
65after the page that uses &quot;top.&quot;
66If the output is not already at the beginning of a new page,
67a new page is started.
68<DT>
69<A HREF="headfoot.html">bottom2</A>
70<DD>
71to define what is to be printed on the bottom of pages
72after the page that uses &quot;bottom.&quot;
73If the output is not already at the beginning of a new page,
74a new page is started.
75<DT>
76<A HREF="prnttext.html#block">block</A>
77<DD>
78to define a block that contains text rather than music.
79<DT>
80score
81<DD>
82to define
83<A HREF="param.html">parameters</A>
84that apply to the entire score.
85<DT>
86staff <I>S</I>
87<DD>
88to define
89<A HREF="param.html">parameters</A>
90to be used for staff <I>S</I>,
91where <I>S</I> is a number from 1 to 40.
92<DT>
93voice <I>S V</I>
94<DD>
95to define
96<A HREF="param.html">parameters</A>
97for a particular voice <I>V</I> on staff <I>S</I>.
98The voice <I>V</I> can be either 1, 2, or 3.
99<I>S</I> is a staff number from 1 to 40.
100<DT>
101<A HREF="textmark.html#grids">grids</A>
102<DD>
103to define grids (typically for guitar)
104<DT>
105<A HREF="shaped.html">headshapes</A>
106<DD>
107to define what note head shapes to use for notes of various durations.
108This context is rarely used, and is described in the chapter on
109<A HREF="shaped.html">shaped notes.</A>
110<DT>
111<A HREF="music.html">music</A>
112<DD>
113to define everything else. This includes
114<A HREF="chordinp.html">notes,</A>
115<A HREF="lyrics.html">lyrics,</A>
116<A HREF="bars.html">bar lines,</A>
117<A HREF="phrase.html">phrase marks,</A>
118<A HREF="textmark.html">tempo and dynamic marks, etc.</A>
119</DL>
120</P>
121<P>
122Most contexts are optional. An input file
123just needs to contain either at least one measure of music
124or at least one
125<A HREF="prnttext.html#block">block.</A>
126<A HREF="headfoot.html">The \fBheader, footer, header2,\fP and \fBfooter2\fP</A>
127contexts may be placed anywhere in the file, but each can be used only once.
128The other contexts may appear any number of times
129in any order, and the order in which they occur is significant in
130determining the output produced.
131</P>
132<HR><P>
133&nbsp;&nbsp;&nbsp;<A HREF="gensyn.html">&lt;-- previous page</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="music.html">next page --&gt;</A>
134</P>
135</BODY></HTML>