3 Marking complicated tempo changes
7 <A HREF="oddeven.html"><-- previous page</A>
9 <A HREF="index.html">Table of Contents</A> <A HREF="multsong.html">next page --></A>
13 Marking complicated tempo changes
16 Sometimes you may wish to indicate tempo changes by showing 2 note
17 values with an equals sign between them. For simple cases, this is
18 fairly straightforward, but if you want to include beamed notes or a triplet,
19 a little more work is required. Another use of this notation is to
20 show that the music is to be played in "swing time," as in this example,
21 which has two ordinary eight notes on one side of the equals sign,
22 and a triplet made up of a quarter and eighth note on the other:
25 // This example assumes "size" is set to 15
34 // set X and Y to where the first note will be placed
38 // print "straight 8ths = triplet quarter plus 8th"
40 // print the basic notes and equal sign
41 print (X, Y) "\(smup4n) \(smup4n) = \(smup4n) \(smup8n)"
43 // print the beam between the straight 8th notes
44 wide line (X + 2.1, Y + 5.5) to (X + 7.2, Y + 5.5)
46 // now do the triplet bracket
47 line (X + 14.7, Y + 7.0) to (X + 17.6, Y + 7.0) // horz left top segment
48 line (X + 19.4, Y + 7.0) to (X + 22.5, Y + 7.0) // horz right top segment
49 line (X + 14.7, Y + 7.05) to (X + 14.7, Y + 5.3) // vert left side segment
50 line (X + 22.5, Y + 7.05) to (X + 22.5, Y + 5.3) // vert right side segment
52 // print the 3 in the middle of the bracket
53 print (X + 17.9, Y + 6.1) "\s(8)\f(TI)3" // the 3 for the triplet
57 <IMG SRC="mugex95.gif" ALT="Picture of Mup output"><BR>
60 Note that if you want a piece to be played in swing time,
61 you may also want to set the
62 <A HREF="param.html#swing">swingunit parameter,</A>
63 which will make the MIDI output use swing time.
66 <A HREF="oddeven.html"><-- previous page</A> <A HREF="index.html">Table of Contents</A> <A HREF="multsong.html">next page --></A>