chiark / gitweb /
Import upstream version 5.3.
[mup] / mup / docs / uguide / textmark.html
CommitLineData
fac14bbe
MW
1<HTML>
2<HEAD><TITLE>
3Mup Text Marks
4</TITLE></HEAD>
5<BODY>
6<P>
7&nbsp;&nbsp;&nbsp;<A HREF="stuff.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="mussym.html">next page --&gt;</A>
10</P>
11
12<H2>
13Text
14</H2>
15<P>
16The four forms of Mup text statements
17(rom, bold, ital, and boldital) operate identically except for the font
18which is used.
19</P>
20<P>
21The text statements can have several additional qualifiers. The first is a
22fontfamily, given before the font. It can have any of the values of
23<A HREF="param.html#fontfam">the "fontfamily" parameter</A>
24(avantgarde, bookman, courier, helvetica,
25newcentury, palatino, or times), with the default being the value of
26the &quot;fontfamily&quot; parameter.
27</P>
28<P>
29The next optional qualifier is a
30point size, given in parentheses after the font type of rom, bold, etc.
31If this is omitted, the size is obtained from
32<A HREF="param.html#size">the "size" parameter</A>
33for the given staff, or for the score if the staff is specified by &quot;all.&quot;
34</P>
35<H3>
36Chord, analysis, figured bass, and dynamics
37</H3>
38<P>
39<A NAME="chordmod">The final optional qualifier specifies special treatment of the text.</A>
40The qualifier can be &quot;chord&quot;, &quot;analysis&quot;, &quot;figbass&quot;, or &quot;dyn&quot;.
41The &quot;chord&quot; modifier is typically used for marking chords that might be
42played by a guitar or other instrument. The &quot;analysis&quot; modifier is
43typically used when marking harmonic analysis like &quot;IV&quot; or &quot;vii&quot;.
44The &quot;figbass&quot; modifier is for figured bass notation.
45For all three, distance from the staff is affected by
46<A HREF="param.html#chdist">the "chorddist" parameter.</A>
47The &quot;dyn&quot; modifier is to mark the text as something that specifies
48dynamics. Mup only uses it when deciding where to place the text;
49something marked &quot;dyn&quot; will be treated like crescendo
50and decrescendo &quot;hairpins.&quot;
51The default <I>place</I> for chord and dyn is above, whereas the default
52for the others is below.
53</P>
54<P>
55The text strings used with these chord, analysis, or figbass modifiers can
56contain any characters, but
57characters that indicate accidentals (&quot;#&quot;, &quot;&amp;&quot;, &quot;x&quot;, &quot;&amp;&amp;&quot;, and &quot;n&quot;)
58are translated to the appropriate music character, while &quot;o&quot;, &quot;o/&quot;,
59and &quot;^&quot; are translated to &quot;\(dim)&quot;, &quot;\(halfdim)&quot;, and &quot;\(triangle)&quot;
60respectively. However, with &quot;chord,&quot; the
61translation of &quot;n&quot; to natural sign is not done, so you have to
62use \(nat) if you want a natural sign. This is because a literal letter n
63tends to occur more often in chords than natural signs.
64</P>
65<P>
66If you want to turn off the translation, to treat one of these characters
67literally, you can precede it with two backslashes.
68Thus, for example, &quot;\\&amp;&quot; would yield a literal ampersand rather than
69a flat symbol.
70</P>
71<P>
72If the
73<A HREF="param.html#xpose">transpose</A>
74or
75<A HREF="param.html#addxpose">addtranspose</A>
76parameters are set, chords are transposed to match the new key:
77the letters &quot;A&quot; through &quot;G&quot;
78and any following accidentals will be transposed appropriately.
79The accidental can be either something like &quot;#&quot; or &quot;&amp;&quot; or any of the special
80<A HREF="textstr.html#symlist">music characters</A>
81for accidentals (\(sharp), \(flat), etc.).
82If the staff is specified as &quot;all,&quot; the score transposition value is used.
83Transposition has no effect on analysis or figbass.
84</P>
85<P>
86In figbass, the string starts out in piled mode, which means that
87each space in the input string will cause a new line on output, and,
88unless you specify other alignment, each line will be aligned on
89the last digit in the line. Also, the meanings of
90/ and \/ are reversed from the normal meaning. This is done since
91drawing a slash through a number is very common in
92figured bass, so you can just use a / to indicate this,
93but if you really want a real slash,
94you can still get one by entering \/.
95</P>
96<P>
97With all three special qualifiers, the usual meanings
98of : and \: are reversed. This is
99because piling is very common in these strings, so it's handier to just
100put a : to indicate this, and for those rare cases when you want a
101literal colon, you can still get one by entering a \:.
102</P>
103<P>
104Here is an example showing chord, analysis, and figbass:
105<BR><PRE>
1061: egc+;dgb;dfa;dgb;
107bold chord above 1: 1 &quot;C&quot;; 2 &quot;G&quot;; 3 &quot;Dm&quot;; 4 &quot;G&quot;;
108rom analysis below 1: 1 &quot;I&quot;; 2 &quot;V&quot;; 3 &quot;ii&quot;; 4 &quot;V&quot;;
109bar
110
1111: egc+;dgb;df#a;dgb;
112rom figbass below 1: 1 &quot;6 3&quot;; 2 &quot;6 4&quot;; 3 &quot;3/&quot;; 4 &quot;6 4&quot;;
113bar
114
1151: 1cegb;
116rom chord above 1: 1 &quot;C^7&quot;;
117bar
1181: 1ce&amp;g&amp;b&amp;;
119rom chord above 1: 1 &quot;Co/&quot;;
120bar
1211: 1ce&amp;g&amp;b&amp;&amp;;
122rom chord above 1: 1 &quot;Co:7&quot;;
123bar
1241: 1e&amp;g&amp;b&amp;;
125rom chord above 1: 1 &quot;E&amp;m&quot;;
126bar
127</PRE><BR>
128<IMG SRC="mugex69.gif" ALT="Picture of Mup output"><BR>
129</P>
130<P>
131If a music symbol occurs inside an ital or boldital string,
132<A NAME="italmus">the music symbol will automatically be made italics,</A>
133to match the rest of the string.
134</P>
135<P>
136It is possible to supply a duration on text statements. When this is done,
137Mup will draw a dashed line from the end of the text to the
138end of the duration.
139This may be useful if you want to indicate how long
140an action such as an accelerando or crescendo is to last.
141If the last character of the string is a &quot;~&quot;,
142a wavy line will be drawn instead of a dashed line.
143If the last character of the string is an underscore, an underscore
144line will be drawn.
145</P>
146<P>
147Here are some examples of text:
148<BR><PRE>
1491: e;g;b;d+;
1502: 2e;b-;
151rom (12) above 1: 0 &quot;Andante ( \(smup4n) = 88 )&quot;;
152boldital (12) below 1: 1 &quot;mf&quot;; 3.5 &quot;mp&quot;;
153newcentury bold (12) chord above 1: 1 &quot;E&amp;7&quot;; 3 &quot;B&amp;9&quot;;
154ital between 1&amp;2: 2 &quot;rit.&quot;;
155palatino ital below 2: 2 &quot;cresc.&quot; til 1m+2;
156bar
1571: 1egc+;
1582: 1c;
159bold (12) chord above 1: 1 &quot;Cm&quot;;
160bar
161</PRE><BR>
162<IMG SRC="mugex70.gif" ALT="Picture of Mup output"><BR>
163</P>
164<H2>
165Grids
166</H2>
167<P>
168<A NAME="grids">If the</A>
169<A HREF="param.html#gridused">gridswhereused parameter</A>
170is set to &quot;y&quot; chords will also have a grid printed.
171For this to work, a grid with the same name as the chord must be
172defined in &quot;grids&quot; context elsewhere in the input file.
173</P>
174<P>
175The grids context contains lines each consisting of two text strings.
176The first is the name of the chord, matching the name you want to
177use in printing text with the &quot;chord&quot; qualifier. The second describes
178the fret pattern for that chord. It is a space-separated list, with
179each list element being either a fret number from 1 to 99, which will result in
180a dot being printed at that fret, or an &quot;o&quot; or &quot;x&quot;
181which will result in a circle or x respectively being printed above the
182grid, or a &quot;-&quot; in which case no mark at all will be made.
183The fret pattern may also contain an open and closing
184parenthesis to mark where a curve is to be drawn, indicating the use
185of a single finger to span several strings. For example:
186<BR><PRE>
187score
188 gridswhereused=y
189 gridfret=3
190grids
191 &quot;C&quot; &quot; - 3 2 o 1 o &quot;
192 &quot;C5&quot; &quot; - 3 x o 1 3 &quot;
193 &quot;Em&quot; &quot; o 2 2 o o o &quot;
194 &quot;A&amp;&quot; &quot;(4 6 6 5 4 4)&quot;
195 &quot;A11&quot; &quot; - o o o o o &quot;
196music
197
198rom chord 1: 1 &quot;C&quot;; 2 &quot;C5&quot;; 3 &quot;Em&quot;;
1991: 2c;e;
200bar
201
202rom chord 1: 1 &quot;A&amp;&quot;; 3 &quot;A11&quot;;
2031: 2a&amp;;an;
204bar
205</PRE><BR>
206<IMG SRC="mugex71.gif" ALT="Picture of Mup output"><BR>
207</P>
208<P>
209If
210<A HREF="param.html#xpose">transposition</A>
211is in effect,
212the chord names in the grids context have to match the transposed names.
213So, for example, if you use an &quot;A&quot; chord in a chord statement, then
214transpose the staff up a major second, Mup will look for and use the grid
215definition called &quot;B&quot; to match the transposed chord name.
216</P>
217<P>
218If you supply more than one grid definition for the same chord name,
219Mup uses the last one. This allows you to easily
220<A HREF="include.html">"include" a file</A>
221of standard chords, but override a few of them with a special fingering for a
222particular song. If you really want to use more than one fingering in
223different places in the same song for the same chord name, you need to make
224the names look different, so Mup will treat them as different chords.
225One way to do this would be to put a space and backspace in the name.
226So, for example, &quot;Am&quot; and &quot;Am \b&quot; would count as separate chords and could
227have different grid definitions, but the chord names would still look
228the same on output.
229</P>
230<HR><P>
231&nbsp;&nbsp;&nbsp;<A HREF="stuff.html">&lt;-- previous page</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="mussym.html">next page --&gt;</A>
232</P>
233</BODY></HTML>