X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fpositioning-multi-measure-rests.ly;h=6eff2e35eedcb9a06dc8831f5946d6f08203fc92;hb=1a7457238ded43913d7afd674123211c57a3c44a;hp=8a422f4318621c49487700834701440b92d8fbf3;hpb=b503d2c54e1c3c6bf1677226b2c2aaab94e8aba8;p=lilypond.git diff --git a/Documentation/snippets/positioning-multi-measure-rests.ly b/Documentation/snippets/positioning-multi-measure-rests.ly index 8a422f4318..6eff2e35ee 100644 --- a/Documentation/snippets/positioning-multi-measure-rests.ly +++ b/Documentation/snippets/positioning-multi-measure-rests.ly @@ -1,15 +1,14 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it -%% Make any changes in LSR itself, or in Documentation/snippets/new/ , -%% and then run scripts/auxiliar/makelsr.py -%% -%% This file is in the public domain. -\version "2.12.2" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.15.14 +\version "2.15.14" \header { - lsrtags = "rhythms, tweaks-and-overrides" - -%% Translation of GIT committish: fa19277d20f8ab0397c560eb0e7b814bd804ecec +%% Translation of GIT committish: 8b93de6ce951b7b14bc7818f31019524295b990f doctitlees = "Posicionar los silencios multicompás" texidoces = " A diferencia de los silencios normales, no existe una instrucción @@ -47,6 +46,8 @@ positionnement des silences multi-mesures peut se contrôler ainsi : " doctitlefr = "Positionnement des silences multi-mesures" + lsrtags = "rhythms, tweaks-and-overrides" + texidoc = " Unlike ordinary rests, there is no predefined command to change the staff position of a multi-measure rest symbol of either form by @@ -59,30 +60,46 @@ follows: doctitle = "Positioning multi-measure rests" } % begin verbatim + \relative c'' { - % MMR - Multi-Measure Rest - % MMRs by default are set under the fourth line + % Multi-measure rests by default are set under the fourth line R1 - % They can be moved with an override + % They can be moved using an override \override MultiMeasureRest #'staff-position = #-2 R1 - % A value of 0 is the default position; - % the following trick moves the rest to the center line - \override MultiMeasureRest #'staff-position = #-0.01 + \override MultiMeasureRest #'staff-position = #0 + R1 + \override MultiMeasureRest #'staff-position = #2 R1 - % MMRs in odd-numbered voices are under the top line + \override MultiMeasureRest #'staff-position = #3 + R1 + \override MultiMeasureRest #'staff-position = #6 + R1 + \revert MultiMeasureRest #'staff-position + \break + + % In two Voices, odd-numbered voices are under the top line << { R1 } \\ { a1 } >> - % MMRs in even-numbered voices are under the bottom line - << { c1 } \\ { R1 } >> - % They remain separated even in empty measures + % Even-numbered voices are under the bottom line + << { a1 } \\ { R1 } >> + % Multi-measure rests in both voices remain separate << { R1 } \\ { R1 } >> - % This brings them together even though there are two voices + + % Separating multi-measure rests in more than two voices + % requires an override + << { R1 } \\ { R1 } \\ + \once \override MultiMeasureRest #'staff-position = #0 + { R1 } + >> + + % Using compressed bars in multiple voices requires another override + % in all voices to avoid multiple instances being printed \compressFullBarRests << - \revert MultiMeasureRest #'staff-position + \revert MultiMeasureRest #'staff-position { R1*3 } \\ - \revert MultiMeasureRest #'staff-position + \revert MultiMeasureRest #'staff-position { R1*3 } >> }