[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `StaffGroup` prevents articulation shifted under time signature
From: |
David Kastrup |
Subject: |
Re: `StaffGroup` prevents articulation shifted under time signature |
Date: |
Mon, 23 May 2022 12:48:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Werner LEMBERG <wl@gnu.org> 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