X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mup/blobdiff_plain/cdb3c0882392596f814cf939cbfbd38adc6f2bfe..ddf6330b56bcfb657e0186b24b9b1422c51d3424:/mup/docs/uguide/invisbar.html diff --git a/mup/docs/uguide/invisbar.html b/mup/docs/uguide/invisbar.html new file mode 100644 index 0000000..b41402f --- /dev/null +++ b/mup/docs/uguide/invisbar.html @@ -0,0 +1,81 @@ + + +Special uses of invisbar + + +

+   <-- previous page + +     Table of Contents    next page --> +

+ +

+Special uses of invisbar +

+

+The "invisbar" can be used +to force Mup into +doing something in the middle of a bar that it normally would allow +to happen only at a bar line. +Suppose, for example, you wish to place a +rehearsal letter +in the middle of a measure. This could be accomplished as follows: +

+// assume we are in 4/4 time, but want
+// a rehearsal letter by count 3
+// of the measure
+
+// do first part of measure and use "space"
+// for last part so time values will add up
+// properly to a full measure
+1: 4c;d;2s;
+
+// put in invisible bar with rehearsal letter
+invisbar rehearsal let
+
+// now do the last half of the measure,
+// this time with space at the beginning
+1: 2s;4e;c;
+bar
+

+Picture of Mup output
+

+

+As another example of invisbar use, suppose you want to add a "courtesy" +key signature at the end of a repeated section to remind the player that the +beginning of the repeated section is in a different key. This can be done +by adding an empty measure whose sole purpose is to produce this key signature. +

+score key=3&
+music
+1: g;f;e;d;
+repeatstart
+1: c;e;f;g;
+dblbar
+score key=0&
+music
+1: g;f;e;d;
+bar ending "1."
+1: f;e;2c;
+// add a courtesy key signature,
+// to remind player the beginning
+// of the repeated section is in
+// a different key
+invisbar
+score key=3&
+music
+1: ms;
+repeatend ending "2."
+1: e;d;2c;
+endbar
+

+Picture of Mup output
+

+

+You can use a similar technique to insert time signatures, clefs, etc. +at unusual places. +

+

+   <-- previous page     Table of Contents    next page --> +

+