Horizontally aligning custom dynamics like “più f”: Difference between revisions
m New category Tags: Mobile edit Mobile web edit |
Simplify |
||
| (One intermediate revision by the same user not shown) | |||
| Line 10: | Line 10: | ||
* Set an explicit alignment inside the dynamic script. By default, this won't have any effect, only if one sets <code>X-offset</code>! Drawback: One needs to set <code>DynamicText.X-offset</code>, which will apply to all dynamic texts! Also, it is aligned at the right edge of the additional text, not at the center of \pp. | * Set an explicit alignment inside the dynamic script. By default, this won't have any effect, only if one sets <code>X-offset</code>! Drawback: One needs to set <code>DynamicText.X-offset</code>, which will apply to all dynamic texts! Also, it is aligned at the right edge of the additional text, not at the center of \pp. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
\paper { | \paper { | ||
ragged-right = ##f | ragged-right = ##f | ||
indent = | indent = 5\cm | ||
} | } | ||
| Line 79: | Line 78: | ||
\new StaffGroup << | \new StaffGroup << | ||
\new Staff | \new Staff \with { instrumentName = "standard" } | ||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
c4\pp c\p c c | c\ff c c\pp c | c4\pp c\p c c | c\ff c c\pp c | ||
} | } | ||
\new Staff \with {instrumentName = "normal markup" } | |||
\new Staff | |||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
c4-\semppMarkup c\p c c | c\ff c c-\semppMarkup c | c4-\semppMarkup c\p c c | c\ff c c-\semppMarkup c | ||
} | } | ||
\new Staff \with { instrumentName = "explicit shifting" } | |||
\new Staff | |||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
| Line 107: | Line 97: | ||
c4\semppK c | c4\semppK c | ||
} | } | ||
\new Staff \with { instrumentName = "right padding" } | |||
\new Staff | |||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
c4\semppT c\p c c | c\ff c c\semppT c | c4\semppT c\p c c | c\ff c c\semppT c | ||
} | } | ||
\new Staff \with { instrumentName = "set dimension to zero" } | |||
\new Staff | |||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
c4\semppM c\p c c | c\ff c c\semppM c | c4\semppM c\p c c | c\ff c c\semppM c | ||
} | } | ||
\new Staff \with { instrumentName = "shift inside dynamics" } | |||
\new Staff | |||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
c4\semppG c\p c c | c\ff c c\semppG c | c4\semppG c\p c c | c\ff c c\semppG c | ||
} | } | ||
\new Staff \with { instrumentName = "alignment inside dynamics" } | |||
\new Staff | |||
\relative c'' { | \relative c'' { | ||
\key es \major | \key es \major | ||
\override DynamicText.X-offset = #-1 | |||
\override DynamicText.X-offset = # | |||
c4\semppMII c\p c c | c\ff c c\semppMII c | c4\semppMII c\p c c | c\ff c c\semppMII c | ||
} | } | ||
>> | >> | ||
| Line 153: | Line 125: | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||