| 1 | <HTML> |
| 2 | <HEAD><TITLE> |
| 3 | Marking complicated tempo changes |
| 4 | </TITLE></HEAD> |
| 5 | <BODY> |
| 6 | <P> |
| 7 | <A HREF="oddeven.html"><-- previous page</A> |
| 8 | |
| 9 | <A HREF="index.html">Table of Contents</A> <A HREF="multsong.html">next page --></A> |
| 10 | </P> |
| 11 | |
| 12 | <H2> |
| 13 | Marking complicated tempo changes |
| 14 | </H2> |
| 15 | <P> |
| 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: |
| 23 | <BR><PRE> |
| 24 | score |
| 25 | // This example assumes "size" is set to 15 |
| 26 | size=15 |
| 27 | beamstyle=4,4 |
| 28 | |
| 29 | music |
| 30 | |
| 31 | // set a location tag |
| 32 | 1: [=c] 8c+;a;g;f; |
| 33 | |
| 34 | // set X and Y to where the first note will be placed |
| 35 | define X c.x - 3 @ |
| 36 | define Y c.y + 5 @ |
| 37 | |
| 38 | // print "straight 8ths = triplet quarter plus 8th" |
| 39 | |
| 40 | // print the basic notes and equal sign |
| 41 | print (X, Y) "\(smup4n) \(smup4n) = \(smup4n) \(smup8n)" |
| 42 | |
| 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) |
| 45 | |
| 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 |
| 51 | |
| 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 |
| 54 | |
| 55 | bar |
| 56 | </PRE><BR> |
| 57 | <IMG SRC="mugex95.gif" ALT="Picture of Mup output"><BR> |
| 58 | </P> |
| 59 | <P> |
| 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. |
| 64 | </P> |
| 65 | <HR><P> |
| 66 | <A HREF="oddeven.html"><-- previous page</A> <A HREF="index.html">Table of Contents</A> <A HREF="multsong.html">next page --></A> |
| 67 | </P> |
| 68 | </BODY></HTML> |