Once in a while, music is written with different
time signatures
on different staffs. Mup does not support this directly,
but it is possible to simulate it
for the case where the time signatures reduce to the same value, for example,
3/4 and 6/8 time (since 6/8 taken as a fraction and reduced to lowest terms
is 3/4). You can make the output use both 3/4 and 6/8 by using a non-printing
time signature, then placing the time signatures manually.
Here is an example of how to do that:
score // set time signature to 3/4 but don't print it time=3/4n staffs=2 staff 1 // We want this staff to be in 3/4 time, // so beam things in groups of // quarter note times. beamstyle=4,4,4 staff 2 // We want this staff to effectively be // in 6/8 time, so we'll beam things // in groups of dotted quarters. beamstyle=4., 4. // In real 6/8 time, the time unit would // be eighth note, so make that the default timeunit=8 music // Add padding to the first chord on at least one // of the staffs, to make room for the manually placed // time signatures, and set location tags 1: [pad 5; =t] c; 8d; e; f; g; 2: [=s] g; f; g; 4.c; // Manually place the time signatures // They are printed in 16-point newcentury bold font, // relative to the location tags that were set. // First print the 3/4 print (t.w - 4, t.y) "\f(newcentury bold)\s(16)3"; print (t.w - 4, t.y - 4) "\f(newcentury bold)\s(16)4"; // Then print the 6/8 print (t.w - 4, s.y) "\f(newcentury bold)\s(16)6"; print (t.w - 4, s.y - 4) "\f(newcentury bold)\s(16)8"; bar
A similar technique can be used in another circumstance: sometimes two
time signatures are printed when the following music
switches back and forth frequently between the two
(rather than printing the changed time signature each time).
This can be done in Mup by printing the first
time signature normally and the second one manually, then doing future
time signature changes with the n suffix to suppress printing them.
score time=3/4 music // Add padding to the first chord // to make room for the manually placed // time signature, and set location tag 1: [pad 5; =t] c; d; e; // Manually place the second time signature print (t.w - 4, t.y) "\f(newcentury bold)\s(16)2"; print (t.w - 4, t.y - 4) "\f(newcentury bold)\s(16)4"; bar // Make the next measure in 2/4 time score time=2/4n music 1: e;g; bar
The same sort of idea could be used to create time signatures like 3+2 over 4.