Hello Lib,

Sorry for the late reply.

>> >> In this example, everything looks fine when there are max. 3
>> >> nested analysis brackets (first score). However, when the
>> >> brackets are 4 the distance between them is irregular.

The irregular distance is caused by LilyPond trying to vertically fit
the items as tight as possible, which is what you normally want.

> I'm a bit lost regarding the distance between them.

> I tried this but with no success (and I didn't understand what
> break-overshoot is supposed to do, so I just tried it).

Looking into the IR you can find the following documentation:

  ‘break-overshoot’ (pair of numbers):
     ‘horizontal-bracket::calc-break-overshoot’

     A pair of numbers specifying how much a broken spanner sticks
     out of its bounds horizontally on the broken side(s).  For
     broken beams and broken tuplet brackets, the bounds are given
     by the prefatory matter on the left and/or the rightmost
     column on the right.  For broken horizontal brackets, the
     bounds are the leftmost and/or rightmost column; for broken
     measure spanners, the left and/or right edge of the staff.

This shows you that funcion `horizontal-bracket::calc-break-overshoot`
is calculating the default default value for this property, and you
can it override manually by providing a pair of numbers.  In any case,
it is related to brackets that are broken across systems, controlling
some horizontal extents – this is not relevant to your problem of
getting better vertical distances.

What you need is to change the *padding* between the brackets, i.e.,
the minimum vertical distance.  Not very surprisingly, the
corresponding property is called `padding`, and it is also available for
many other LilyPond grobs.


    Werner


======================================================================


music = {
  c4 \tweak outside-staff-priority #802 \startGroup
     \tweak outside-staff-priority #801 \startGroup
     \tweak outside-staff-priority #800 \startGroup
  c \stopGroup
  c \stopGroup
  c \stopGroup
}

\relative c' {
  \time 4/4

  \music
  \override HorizontalBracket.padding = #1
  \music
}

\layout {
  \context {
    \Voice
    \consists Horizontal_bracket_engraver
  }
}

Reply via email to