lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `StaffGroup` prevents articulation shifted under time signature


From: Jean Abou Samra
Subject: Re: `StaffGroup` prevents articulation shifted under time signature
Date: Mon, 23 May 2022 12:36:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

Le 23/05/2022 à 12:32, Werner LEMBERG a écrit :
[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.



The definition of StaffGroup in engraver-init.ly contains

  %% The default for DynamicText.extra-spacing-width causes dynamics to
  %% be placed across span bars, so switch it off:
  \override DynamicText.extra-spacing-width = ##f

so you need

\version "2.23.9"

<<
  \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 \tweak extra-spacing-width #'(+inf.0 . -inf.0) \pp }
>>


to restore the default on that \pp.

Best,
Jean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]