Commit | Line | Data |
---|---|---|
69695f33 MW |
1 | <HTML> |
2 | <HEAD><TITLE> | |
3 | Special uses of invisbar | |
4 | </TITLE></HEAD> | |
5 | <BODY> | |
6 | <P> | |
7 | <A HREF="adjust.html"><-- previous page</A> | |
8 | ||
9 | <A HREF="index.html">Table of Contents</A> <A HREF="chant.html">next page --></A> | |
10 | </P> | |
11 | ||
12 | <H2> | |
13 | Special uses of invisbar | |
14 | </H2> | |
15 | <P> | |
16 | The "invisbar" can be used | |
17 | to force Mup into | |
18 | doing something in the middle of a bar that it normally would allow | |
19 | to happen only at a bar line. | |
20 | Suppose, for example, you wish to place a | |
21 | <A HREF="bars.html#reh">rehearsal letter</A> | |
22 | in 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 "space" | |
29 | // for last part so time values will add up | |
30 | // properly to a full measure | |
31 | 1: 4c;d;2s; | |
32 | ||
33 | // put in invisible bar with rehearsal letter | |
34 | invisbar rehearsal let | |
35 | ||
36 | // now do the last half of the measure, | |
37 | // this time with space at the beginning | |
38 | 1: 2s;4e;c; | |
39 | bar | |
40 | </PRE><BR> | |
41 | <IMG SRC="mugex87.gif" ALT="Picture of Mup output"><BR> | |
42 | </P> | |
43 | <P> | |
44 | As another example of invisbar use, suppose you want to add a "courtesy" | |
45 | key signature at the end of a repeated section to remind the player that the | |
46 | beginning of the repeated section is in a different key. This can be done | |
47 | by adding an empty measure whose sole purpose is to produce this key signature. | |
48 | <BR><PRE> | |
49 | score key=3& | |
50 | music | |
51 | 1: g;f;e;d; | |
52 | repeatstart | |
53 | 1: c;e;f;g; | |
54 | dblbar | |
55 | score key=0& | |
56 | music | |
57 | 1: g;f;e;d; | |
58 | bar ending "1." | |
59 | 1: 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 | |
64 | invisbar | |
65 | score key=3& | |
66 | music | |
67 | 1: ms; | |
68 | repeatend ending "2." | |
69 | 1: e;d;2c; | |
70 | endbar | |
71 | </PRE><BR> | |
72 | <IMG SRC="mugex88.gif" ALT="Picture of Mup output"><BR> | |
73 | </P> | |
74 | <P> | |
75 | You can use a similar technique to insert time signatures, clefs, etc. | |
76 | at unusual places. | |
77 | </P> | |
78 | <HR><P> | |
79 | <A HREF="adjust.html"><-- previous page</A> <A HREF="index.html">Table of Contents</A> <A HREF="chant.html">next page --></A> | |
80 | </P> | |
81 | </BODY></HTML> |