On 6/30/2018 7:20 AM, Torsten Hämmerle wrote:
SoundsFromSound wrote
I've tried to fix this collision but I don't understand how I can avoid
it. I believe it has to do with either my Score.BarNumber stencil or
offsets of measure numbers, but I can't get the right combo with the
system padding.

Hi Ben,

I think this shouldn't solved by any padding at all but by adjusting the
distances between systems.
The separator will always be vertically centred between systems for optical
reasons, and if a bar number happens to collide with the separator, this
just means that the systems are too close together.

In your example, the bar numbers take considerable space (relatively large
font, boxed with lots of padding) so that they even may effectively serve as
a system separator.
As the bar numbers will always be present at the beginning of a system, the
best solution (in my opinion) would be just to increase the overall
system-system-spacing (in the \paper block) to give the score an evenly
spaced look.


%%%%%%%%%%%%%
\version "2.19.81"

\new Staff {
   \repeat unfold 100 { c1  }
}

\layout {
   \override Score.BarNumber.stencil = #(make-stencil-boxer 0.14 0.65
ly:text-interface::print)
   \override Score.BarNumber.Y-offset = #4
   \override Score.BarNumber.X-offset = #-0.3
}


\paper {
   #(set-paper-size "11x17")
   top-margin = 15\mm
   left-margin = 20\mm
   right-margin = 15\mm
   bottom-margin = 15\mm

   system-separator-markup = \slashSeparator
   system-system-spacing = #'((basic-distance . 18)
                              (minimum-distance . 17)
                              (padding . 1)
                              (stretchability . 12))
}

%%%%%%%%%%%%%

<http://lilypond.1069038.n5.nabble.com/file/t3887/slash-sep-collision.png>

HTH,
Torsten



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Torsten,

Thank you for explaining that perspective, that's what I was trying to make sense of...

Your code works beautifully, must be those magic numbers! ;)

Have a good weekend!


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to