chiark / gitweb /
Merge branch 'arkkra' into shiny
[mup] / mup / docs / uguide / invisbar.html
CommitLineData
69695f33
MW
1<HTML>
2<HEAD><TITLE>
3Special uses of invisbar
4</TITLE></HEAD>
5<BODY>
6<P>
7&nbsp;&nbsp;&nbsp;<A HREF="adjust.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="chant.html">next page --&gt;</A>
10</P>
11
12<H2>
13Special uses of invisbar
14</H2>
15<P>
16The &quot;invisbar&quot; can be used
17to force Mup into
18doing something in the middle of a bar that it normally would allow
19to happen only at a bar line.
20Suppose, for example, you wish to place a
21<A HREF="bars.html#reh">rehearsal letter</A>
22in the middle of a measure. This could be accomplished as follows:
23<BR><PRE>
24// assume we are in 4/4 time, but want
25// a rehearsal letter by count 3
26// of the measure
27
28// do first part of measure and use &quot;space&quot;
29// for last part so time values will add up
30// properly to a full measure
311: 4c;d;2s;
32
33// put in invisible bar with rehearsal letter
34invisbar rehearsal let
35
36// now do the last half of the measure,
37// this time with space at the beginning
381: 2s;4e;c;
39bar
40</PRE><BR>
41<IMG SRC="mugex87.gif" ALT="Picture of Mup output"><BR>
42</P>
43<P>
44As another example of invisbar use, suppose you want to add a &quot;courtesy&quot;
45key signature at the end of a repeated section to remind the player that the
46beginning of the repeated section is in a different key. This can be done
47by adding an empty measure whose sole purpose is to produce this key signature.
48<BR><PRE>
49score key=3&amp;
50music
511: g;f;e;d;
52repeatstart
531: c;e;f;g;
54dblbar
55score key=0&amp;
56music
571: g;f;e;d;
58bar ending &quot;1.&quot;
591: f;e;2c;
60// add a courtesy key signature,
61// to remind player the beginning
62// of the repeated section is in
63// a different key
64invisbar
65score key=3&amp;
66music
671: ms;
68repeatend ending &quot;2.&quot;
691: e;d;2c;
70endbar
71</PRE><BR>
72<IMG SRC="mugex88.gif" ALT="Picture of Mup output"><BR>
73</P>
74<P>
75You can use a similar technique to insert time signatures, clefs, etc.
76at unusual places.
77</P>
78<HR><P>
79&nbsp;&nbsp;&nbsp;<A HREF="adjust.html">&lt;-- previous page</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="chant.html">next page --&gt;</A>
80</P>
81</BODY></HTML>