On Wed, Nov 8, 2023 at 1:59 PM David Nalesnik <[email protected]>
wrote:

> Hi Will,
>
> On Wed, Nov 8, 2023 at 12:14 PM Will Turner <[email protected]>
> wrote:
>
>> How do I center the *rit.* vertically between the treble and bass clef
>> staves in this piano system?
>>
>> _\markup{ \italic {rit.} }
>> [image: image.png]
>>
>
> You can do it by creating a Dynamics context.  It's discussed here (scroll
> down a bit):
> https://lilypond.org/doc/v2.23/Documentation/notation/expressive-marks-attached-to-notes#dynamics
>
>
>
In some cases you may find that putting dynamics and text in a Dynamics
context will not do everything you want.  In these cases, using a tweak to
the Y-offset of the text or dynamics will help.

\version "2.24.2"

rightHandUpper = \relative {
  r4 e' f f8 a
}

rightHandLower = \relative {
  <b d f>2 <b d>
}

leftHandUpper = \relative {
  e2 <e a>
}

leftHandLower = \relative {
  e,1
}

dynamics = {
  s4 s2.-\tweak Y-offset -5 -\markup \italic rit.
}

\score {
  \new PianoStaff <<
    \new Staff << \rightHandUpper \\ \rightHandLower >>
    \new Dynamics \dynamics
    \new Staff << \clef bass \leftHandUpper \\ \leftHandLower >>
  >>
}

--
Knute Snortum

Reply via email to