chiark / gitweb /
Import upstream version 5.3.
[mup] / mup / docs / uguide / mixtsig.html
CommitLineData
69695f33
MW
1<HTML>
2<HEAD><TITLE>
3Mixed time signatures
4</TITLE></HEAD>
5<BODY>
6<P>
7&nbsp;&nbsp;&nbsp;<A HREF="crossbar.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="oddeven.html">next page --&gt;</A>
10</P>
11
12<H2>
13Mixed time signatures
14</H2>
15<P>
16<A NAME="mixdtime">Once in a while, music is written with different</A>
17time signatures
18on different staffs. Mup does not support this directly,
19but it is possible to simulate it
20for the case where the time signatures reduce to the same value, for example,
213/4 and 6/8 time (since 6/8 taken as a fraction and reduced to lowest terms
22is 3/4). You can make the output use both 3/4 and 6/8 by using a non-printing
23time signature, then placing the time signatures manually.
24Here is an example of how to do that:
25<BR><PRE>
26score
27 // set time signature to 3/4 but don't print it
28 time=3/4n
29 staffs=2
30
31staff 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
37staff 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
46music
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
511: [pad 5; =t] c; 8d; e; f; g;
522: [=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
58print (t.w - 4, t.y) &quot;\f(newcentury bold)\s(16)3&quot;;
59print (t.w - 4, t.y - 4) &quot;\f(newcentury bold)\s(16)4&quot;;
60
61// Then print the 6/8
62print (t.w - 4, s.y) &quot;\f(newcentury bold)\s(16)6&quot;;
63print (t.w - 4, s.y - 4) &quot;\f(newcentury bold)\s(16)8&quot;;
64bar
65</PRE><BR>
66<IMG SRC="mugex94.gif" ALT="Picture of Mup output"><BR>
67</P>
68<HR><P>
69&nbsp;&nbsp;&nbsp;<A HREF="crossbar.html">&lt;-- previous page</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Table of Contents</A>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="oddeven.html">next page --&gt;</A>
70</P>
71</BODY></HTML>