Werner LEMBERG <[email protected]> writes:

> [LilyPond version 2.23.9]
>
> The following example
>
> ```
> <<
>   \new Staff { f'1 }
>   \new Staff { f'1 \tweak X-offset #-5 \pp }
>>>
>
> \new StaffGroup <<
>   \new Staff { f'1 }
>   \new Staff { f'1 \tweak X-offset #-5 \pp }
>>>
> ```
>
> shows that I can't move the 'pp' to sit under the time signature if I
> use `StaffGroup`.  How can I change this?  Within full scores it is of
> great importance to retain this ability.

In analogy to

textLengthOff = {
  \override TextScript.extra-spacing-width = #'(+inf.0 . -inf.0)
  \override TextScript.extra-spacing-height = #'(0 . 0)
}

you can do

dynamicLengthOff = {
  \override DynamicText.extra-spacing-width = #'(+inf.0 . -inf.0)
  \override DynamicText.extra-spacing-height = #'(0 . 0)
}


<<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>

\new StaffGroup \with \dynamicLengthOff <<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>
However, this will also stop the dynamics from avoiding interstaff
barlines, the reason for this setting.  The setting is already different
in ChoirStaff which does not have interstaff barlines.

-- 
David Kastrup

Reply via email to