Horizontally aligning custom dynamics like “più f”: Difference between revisions

m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Simplify
 
(3 intermediate revisions 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" full>
<lilypond version="2.24">
\paper {
\paper {
   ragged-right = ##f
   ragged-right = ##f
   indent = 2.5\cm
   indent = 5\cm
  tagline = ##f
}
}


Line 79: Line 78:


\new StaffGroup <<
\new StaffGroup <<
   \new Staff = "s" \with { instrumentName = \markup \column { Normal } }
   \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 = "sMarkup" \with {
    instrumentName = \markup \column { Normal markup }
  }
  <<
     \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 = "sK" \with {
    instrumentName = \markup \column { Explicit shifting }
  }
  <<
     \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 = "sT" \with {
    instrumentName = \markup \column { Right padding }
  }
  <<
     \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 = "sM" \with {
    instrumentName = \markup \column { Set dimension "to zero" }
  }
  <<
     \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 = "sG" \with {
    instrumentName = \markup \column { Shift inside dynamics}
  }
  <<
     \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 = "sMII" \with {
    instrumentName = \markup \column { Alignment inside dynamics }
  }
  <<
     \relative c'' {
     \relative c'' {
       \key es \major
       \key es \major
      % Setting to ##f (false) gives the same result
       \override DynamicText.X-offset = #-1
       \override DynamicText.X-offset = #0
       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:Version-specific]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]