[Top][All Lists]

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

Re: Vertical space for imaginary, real collisions

From: Graham Percival
Subject: Re: Vertical space for imaginary, real collisions
Date: Wed, 25 Oct 2006 15:35:49 -0700
User-agent: Thunderbird (Macintosh/20060909)

I believe you are mistaken. The space that lilypond creates in the first line is appropriate; if the text occurred beneath the sixteenth notes, any less space would result in a collision. LilyPond calculates this space based on drawing a box around the whole system.

In the second line, there is no collision. If you zoom in, you can see a space.

- Graham

Marcus Macauley wrote:
Sometimes Lilypond creates vertical space between staves to avoid a collision between, for example, a text markup in one staff and a beam in the other staff, when these two things happen in different measures and wouldn't actually collide.

On the other hand, in cases where they do collide and hence the vertical space is necessary, sometimes it isn't quite enough.

This file demonstrates both cases:

\version "2.9.22"
\new Staff \relative a' { a4 a a a << {a a a a} \\ {a,8 a a a a a a a} >> \break
    \repeat unfold 3 { a'4 a a a << {a a a a} \\ {a,8 a a a a a a a} >> }
\new Staff \relative a' {
    a1^\markup {
        \column {
            \line {This text wouldn't collide w/ the beam,}
            \line {so less vertical space is needed.}
    a \break
    a^\markup {
        \column {
            \line {This text does collide with the beam,}
            \line {so more vertical space is needed.}
    a a a a a

\layout {  }


bug-lilypond mailing list

reply via email to

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