Commit | Line | Data |
---|---|---|
69695f33 MW |
1 | <HTML> |
2 | <HEAD><TITLE> | |
3 | Mixed time signatures | |
4 | </TITLE></HEAD> | |
5 | <BODY> | |
6 | <P> | |
7 | <A HREF="crossbar.html"><-- previous page</A> | |
8 | ||
9 | <A HREF="index.html">Table of Contents</A> <A HREF="oddeven.html">next page --></A> | |
10 | </P> | |
11 | ||
12 | <H2> | |
13 | Mixed time signatures | |
14 | </H2> | |
15 | <P> | |
16 | <A NAME="mixdtime">Once in a while, music is written with different</A> | |
17 | time signatures | |
18 | on different staffs. Mup does not support this directly, | |
19 | but it is possible to simulate it | |
20 | for the case where the time signatures reduce to the same value, for example, | |
21 | 3/4 and 6/8 time (since 6/8 taken as a fraction and reduced to lowest terms | |
22 | is 3/4). You can make the output use both 3/4 and 6/8 by using a non-printing | |
23 | time signature, then placing the time signatures manually. | |
24 | Here is an example of how to do that: | |
25 | <BR><PRE> | |
26 | score | |
27 | // set time signature to 3/4 but don't print it | |
28 | time=3/4n | |
29 | staffs=2 | |
30 | ||
31 | staff 1 | |
32 | // We want this staff to be in 3/4 time, | |
33 | // so beam things in groups of | |
34 | // quarter note times. | |
35 | beamstyle=4,4,4 | |
36 | ||
37 | staff 2 | |
38 | // We want this staff to effectively be | |
39 | // in 6/8 time, so we'll beam things | |
40 | // in groups of dotted quarters. | |
41 | beamstyle=4., 4. | |
42 | // In real 6/8 time, the time unit would | |
43 | // be eighth note, so make that the default | |
44 | timeunit=8 | |
45 | ||
46 | music | |
47 | ||
48 | // Add padding to the first chord on at least one | |
49 | // of the staffs, to make room for the manually placed | |
50 | // time signatures, and set location tags | |
51 | 1: [pad 5; =t] c; 8d; e; f; g; | |
52 | 2: [=s] g; f; g; 4.c; | |
53 | ||
54 | // Manually place the time signatures | |
55 | // They are printed in 16-point newcentury bold font, | |
56 | // relative to the location tags that were set. | |
57 | // First print the 3/4 | |
58 | print (t.w - 4, t.y) "\f(newcentury bold)\s(16)3"; | |
59 | print (t.w - 4, t.y - 4) "\f(newcentury bold)\s(16)4"; | |
60 | ||
61 | // Then print the 6/8 | |
62 | print (t.w - 4, s.y) "\f(newcentury bold)\s(16)6"; | |
63 | print (t.w - 4, s.y - 4) "\f(newcentury bold)\s(16)8"; | |
64 | bar | |
65 | </PRE><BR> | |
66 | <IMG SRC="mugex94.gif" ALT="Picture of Mup output"><BR> | |
67 | </P> | |
68 | <HR><P> | |
69 | <A HREF="crossbar.html"><-- previous page</A> <A HREF="index.html">Table of Contents</A> <A HREF="oddeven.html">next page --></A> | |
70 | </P> | |
71 | </BODY></HTML> |