chiark / gitweb /
Merge branch 'arkkra' into shiny
[mup] / mup / docs / uguide / tempochg.html
CommitLineData
69695f33
MW
1<HTML>
2<HEAD><TITLE>
3Marking complicated tempo changes
4</TITLE></HEAD>
5<BODY>
6<P>
7&nbsp;&nbsp;&nbsp;<A HREF="oddeven.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="multsong.html">next page --&gt;</A>
10</P>
11
12<H2>
13Marking complicated tempo changes
14</H2>
15<P>
16Sometimes you may wish to indicate tempo changes by showing 2 note
17values with an equals sign between them. For simple cases, this is
18fairly straightforward, but if you want to include beamed notes or a triplet,
19a little more work is required. Another use of this notation is to
20show that the music is to be played in &quot;swing time,&quot; as in this example,
21which has two ordinary eight notes on one side of the equals sign,
22and a triplet made up of a quarter and eighth note on the other:
23<BR><PRE>
24score
25 // This example assumes &quot;size&quot; is set to 15
26 size=15
27 beamstyle=4,4
28
29music
30
31// set a location tag
321: [=c] 8c+;a;g;f;
33
34// set X and Y to where the first note will be placed
35define X c.x - 3 @
36define Y c.y + 5 @
37
38// print &quot;straight 8ths = triplet quarter plus 8th&quot;
39
40// print the basic notes and equal sign
41print (X, Y) &quot;\(smup4n) \(smup4n) = \(smup4n) \(smup8n)&quot;
42
43// print the beam between the straight 8th notes
44wide line (X + 2.1, Y + 5.5) to (X + 7.2, Y + 5.5)
45
46// now do the triplet bracket
47line (X + 14.7, Y + 7.0) to (X + 17.6, Y + 7.0) // horz left top segment
48line (X + 19.4, Y + 7.0) to (X + 22.5, Y + 7.0) // horz right top segment
49line (X + 14.7, Y + 7.05) to (X + 14.7, Y + 5.3) // vert left side segment
50line (X + 22.5, Y + 7.05) to (X + 22.5, Y + 5.3) // vert right side segment
51
52// print the 3 in the middle of the bracket
53print (X + 17.9, Y + 6.1) &quot;\s(8)\f(TI)3&quot; // the 3 for the triplet
54
55bar
56</PRE><BR>
57<IMG SRC="mugex95.gif" ALT="Picture of Mup output"><BR>
58</P>
59<P>
60Note that if you want a piece to be played in swing time,
61you may also want to set the
62<A HREF="param.html#swing">swingunit parameter,</A>
63which will make the MIDI output use swing time.
64</P>
65<HR><P>
66&nbsp;&nbsp;&nbsp;<A HREF="oddeven.html">&lt;-- previous page</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="multsong.html">next page --&gt;</A>
67</P>
68</BODY></HTML>