X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fhorizontally-aligning-custom-dynamics-e.g.-sempre-pp%2C-piu-f%2C-subito-p.ly;h=4aa3058d1508bfd51c436e3deebb6755ddd728a0;hb=276109531b49430971a81254bb634e01119fe503;hp=e679a2fda533f71bfd53336e8b6e13abd960dc6d;hpb=248b82c3b9dcecf96351ad5f22540325fa54ad88;p=lilypond.git diff --git a/Documentation/snippets/horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly b/Documentation/snippets/horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly index e679a2fda5..4aa3058d15 100644 --- a/Documentation/snippets/horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly +++ b/Documentation/snippets/horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly @@ -64,9 +64,9 @@ semppMarkup = \markup { \halign #1.4 \italic "sempre" \dynamic "pp" } semppK = #(make-dynamic-script (markup #:line - (#:normal-text - #:italic "sempre" - #:dynamic "pp"))) + (#:normal-text + #:italic "sempre" + #:dynamic "pp"))) % Solution 3: Padding the dynamic script so the center-alignment % puts it at the correct position @@ -74,10 +74,10 @@ semppK = semppT = #(make-dynamic-script (markup #:line - (#:normal-text - #:italic "sempre" - #:dynamic "pp" - #:hspace 7.1))) + (#:normal-text + #:italic "sempre" + #:dynamic "pp" + #:hspace 7.1))) % Solution 4: Dynamic, setting the dimensions of the additional text to 0 % Drawback: To lilypond "sempre" has no extent, so it might put @@ -86,26 +86,37 @@ semppT = % same alignment as without the additional text semppM = #(make-dynamic-script - (markup #:line (#:with-dimensions '(0 . 0) '(0 . 0) - #:right-align #:normal-text #:italic "sempre" #:dynamic "pp"))) + (markup #:line + (#:with-dimensions '(0 . 0) '(0 . 0) + #:right-align + #:normal-text + #:italic "sempre" + #:dynamic "pp"))) % Solution 5: Dynamic with explicit shifting inside the scheme function semppG = #(make-dynamic-script - (markup - #:hspace 0 #:translate '(-18.85 . 0) - #:line( #:normal-text #:italic "sempre" #:dynamic "pp"))) - -% Solution 6: Dynamic with explicit alignment. This has only effect, if one sets X-offset! + (markup #:hspace 0 + #:translate '(-18.85 . 0) + #:line (#:normal-text + #:italic "sempre" + #:dynamic "pp"))) + +% Solution 6: Dynamic with explicit alignment. This has only effect +% if one sets X-offset! % Drawback: One needs to set DynamicText #'X-offset! -% Drawback: Aligned at the right edge of the additional text, not at the center of pp +% Drawback: Aligned at the right edge of the additional text, +% not at the center of pp semppMII = -#(make-dynamic-script (markup #:line(#:right-align - #:normal-text #:italic "sempre" #:dynamic "pp"))) +#(make-dynamic-script + (markup #:line (#:right-align + #:normal-text + #:italic "sempre" + #:dynamic "pp"))) \context StaffGroup << \context Staff = "s" << - \set Staff.instrumentName = "Normal" + \set Staff.instrumentName = #"Normal" \relative c'' { \key es \major c4\pp c\p c c | c\ff c c\pp c @@ -160,3 +171,4 @@ semppMII = } >> >> +