chiark / gitweb /
Import upstream version 5.3.
[mup] / mup / docs / uguide / manual.html
CommitLineData
69695f33
MW
1<HTML>
2<HEAD><TITLE>
3Manual placement of notes
4</TITLE></HEAD>
5<BODY>
6<P>
7&nbsp;&nbsp;&nbsp;<A HREF="mantup.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="brackmac.html">next page --&gt;</A>
10</P>
11
12<H2>
13Manual placement of notes
14</H2>
15<P>
16Mup supports up to three voices per staff. If you need more than that, such as
17when 4 notes of different lengths occur on the same beat, it is possible
18to position extra notes manually.
19Manually positioned notes will not be included in
20<A HREF="midi.html">MIDI output.</A>
21</P>
22<P>
23First of all, unless the fourth voice is vertically far away from the other two,
24you'll probably need to reserve some
25extra space to the left or right of the other chords. This can be done
26by adding a bit of
27<A HREF="chrdattr.html#pad">padding to the chord.</A>
28If you want the extra note on the left of the regular
29voices, add padding to whichever regular voice is leftmost. If you want it
30on the right, the padding will have to go on the following note, or on
31the bar line if you are on the last chord of a measure. The amount of
32padding to add may have to be determined by trial and error; 5 stepsizes
33is a good first guess. Next, set a
34<A HREF="tags.html">location tag</A>
35<A HREF="noteattr.html#ntag">on one of the notes</A>
36in one of the regular groups.
37The manually-positioned note will be placed relative to
38that location tag. The x will be slightly left or right of the
39west or east of the existing group; something like 3 stepsizes might be
40a good first guess. The y can be specified in terms of
41stepsizes up from the note you used for the location tag. You can use a
42<A HREF="prnttext.html">print statement</A>
43using one of the special
44<A HREF="textstr.html#symlist">music characters,</A>
45such as:
46dblwhole, 1n, up2n, dn2n, up4n, up32n, etc. If the note needs ledger lines,
47dots, or accidentals, these too have to be manually positioned,
48which can be a bit tricky. Here is a simple example:
49<BR><PRE>
50score
51vscheme=3o
52beamstyle=4,4,4,4
53
54music
551 1: [pad 4] 4g =h; a; b; a;
561 2: 4.c;8;2;
571 3: [down] 8e;; [ho 0] 2.f;
58print (h.w - 2.3, h.y + 3) &quot;\(up2n)&quot;
59bar
60</PRE><BR>
61<IMG SRC="mugex90.gif" ALT="Picture of Mup output"><BR>
62In this example, 4 stepsizes of padding
63was added to the quarter note g of voice 1
64on staff 1. A location tag &quot;h&quot; was set to this note. After the information
65about the second voice on staff 1, a half note was manually placed
662.3 stepsizes left of the first voice and at pitch c+ (3 steps up from the g).
67</P>
68<P>
69If you also need to place an accidental and/or dots, more padding should be
70requested, and additional print statements used for each item. For example,
71you could specify perhaps 5 stepsizes of padding, then add:
72<BR><PRE>
73print (h.w - 5, h.y + 3) &quot;\(flat)&quot;
74</PRE><BR>
75<IMG SRC="mugex91.gif" ALT="Picture of Mup output"><BR>
76to place a flat sign in front of the c.
77</P>
78<P>
79Ledger lines needed by the notes also have to be
80placed manually, using the &quot;line&quot;
81command. If the note is more than three steps above or below the staff, more
82than one ledger line would be needed, and each would need to be specified
83separately. The y coordinate of the each ledger line would be the same
84as the y coordinate of the note,
85plus or minus some number of step sizes. The length of
86the line depends on the note head. About 4.5 stepsizes is a good estimate for
87most notes, but a double whole needs more like 6 stepsizes.
88</P>
89<HR><P>
90&nbsp;&nbsp;&nbsp;<A HREF="mantup.html">&lt;-- previous page</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="brackmac.html">next page --&gt;</A>
91</P>
92</BODY></HTML>