]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 621: Dynamics should avoid cross-staff BarLines
authorDavid Kastrup <dak@gnu.org>
Thu, 26 Dec 2013 15:07:50 +0000 (16:07 +0100)
committerDavid Kastrup <dak@gnu.org>
Tue, 31 Dec 2013 08:06:42 +0000 (09:06 +0100)
(e.g. GrandStaff, PianoStaff etc)

Dynamics usually have extra-spacing-width set to an empty interval so
that their placement does not cause other elements to shift.

With span bars, however, the resulting overlap is a worse cure than
the problem.  So this switches off the width-hiding setting of
extra-spacing-width inside of staff groups using span bars by default.
No extra space is allocated, so dynamics will clear the span bars only
narrowly, a reasonable compromise.

ly/engraver-init.ly

index dfaa47e12faf136a7a5e8ac63e345e3b9858141c..16ad8c84ef4633ce5cab5ff228136da9b21effca 100644 (file)
@@ -313,6 +313,9 @@ contained staves are connected vertically."
 
   \consists "Instrument_name_engraver"
   \consists "Span_bar_engraver"
+% 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
   \consists "Span_bar_stub_engraver"
   \consists "Span_arpeggio_engraver"
   \consists "System_start_delimiter_engraver"
@@ -359,6 +362,9 @@ together, never separately."
 
   \consists "Instrument_name_engraver"
   \consists "Span_bar_engraver"
+% 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
   \consists "Span_bar_stub_engraver"
   \consists "Span_arpeggio_engraver"
   \consists "Output_property_engraver"