lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collision with slash separator and measure numbers


From: Ben
Subject: Re: Collision with slash separator and measure numbers
Date: Sat, 30 Jun 2018 07:57:42 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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
address@hidden
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!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]