(Sorry, for posting a unfinished (hardly started) reply, some bad
keypress).

I have done more experimentation and the anomaly arises with plain
dynamics (using the extreme pianissisimo to illustrate):

%%%%%%%%%%%%
\version "2.24"
MI = {
         
         c''4 \ppppp
         b' %replacing this note with c'' restores the normal note spacing
         b' b' 
}
MII = {
         b'4 b' b' b' 
}
\score { 
       \new StaffGroup %commentating out this StaffGroup restores the normal 
note spacing
           <<
             \new Staff     \MI
             \new Staff    \MII
           >>
       }
%%%%%%%%%%%%%%%%%%%%%%%%%%

what can the StaffGroup have to do with it?

Richard Shann

On Sun, 2025-12-21 at 18:10 +0000, Richard Shann wrote:
> In the MWE below a custom dynamic is placed under a note; under
> certain
> circumstances it pushes the next note away while in others it
> doesn't.
> The spacing is normal if there is no StaffGroup or if the note
> following the one with the custom dynamic is changed.
> Can anyone explain what is going on here?
> 
> Richard Shann
> %%%%%%%%%%%%
> \version "2.24"
> MI = {
>          <>-\tweak DynamicText.self-alignment-X #LEFT
>             #(make-dynamic-script #{\markup { mp \normal-text \italic
> {legato}}#})
>          c''4 
>          b' %replacing this note with c'' restores the normal note
> spacing
>          b' b' 
> }
> MII = {
>          b'4 b' b' b' 
> }
> \score { 
>        \new StaffGroup %commenting out this StaffGroup restores the
> normal note spacing
>            <<
>              \new Staff     \MI
>              \new Staff    \MII
>            >>
>        }
> %%%%%%%%%%%%%%%
> 


Reply via email to