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