Am Mo., 22. Dez. 2025 um 10:19 Uhr schrieb Richard Shann <[email protected]>: > > (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 > > >> > > } > > %%%%%%%%%%%%%%% > > > >
I guess it's because with StaffGroup positioning of objects is more complex, due to the need to compute the extent of SystemStartBracket, SpanBar etc. Maybe a rounding issue. You can cure it here with \once \override DynamicText.extra-spacing-height = #'(+inf.0 . -inf.0) Though, I did not check for consequences if applied generally. Cheers, Harm
