In a large orchestral piece it was noticed that a dynamic under a note
was slightly displaced to the right. It turned out that this was
because many staffs below there was a chord with notes on both sides of
the stem (because only a semitone apart).
The dynamic was placed in a dynamics staff as there were hairpins that
it had to align with.
Here is an MWE which illustrates the problem.


8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
\version "2.24"
\score { 
          <<
            \new Staff 
             {g''4 r8
              d''  % \sf
              d''2   } 
          
            \new Dynamics \with {  \override VerticalAxisGroup.staff-affinity = 
#UP 
             }  
              { r4.
                r8\sf 
                r2 }
%many more staffs follow in the original then:
            \new Staff   {    g'4 e'8 <c '
                                        d' %with this note commented out all is 
well
                                         > r2  } 
          >>
       } 
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

Any suggestions would be most welcome!
Richard Shann


Reply via email to