I think the use of \context is getting the vertical spacing engine
confused. I _think_ my attached version of your music does what you want -
it would seem to point in the right direction, at the very least.
--
Phil Holmes
----- Original Message -----
From: "Mojca Miklavec" <mojca.miklavec.li...@gmail.com>
To: "lilypond-user" <lilypond-user@gnu.org>
Sent: Wednesday, November 30, 2016 1:22 PM
Subject: Re: Vertically overlapping material / too small vertical space
Hi,
I'm also attaching a "quasi-minimal" example (if a full page may even
be called "minimal").
Mojca
(please CC me)
On 30 November 2016 at 12:06, Mojca Miklavec wrote:
Hi,
I would like to ask for a bit of a guidance. I sometimes end up with
the scores as you see in the attachment. There's simply not enough
vertical space between staves and text is overlapping very badly.
I can attach the complete example (or perhaps come up with some
"\repeat unfold ..." trick to compose a full page that more or less
reproduces the problem), but it's basically the same type of scores as
I used anywhere else in
https://github.com/mojca/frajtonarca/tree/master/tablature/avtorske
On the example in the screenshot you see the following elements in one
stave:
- button names are two lines of Lyrics attached on top of the melody
- Voice with the main melody
- accordion push spanner
- RhythmicStaff
- FiguredBass
I didn't even try to touch the spacing inside the scores. The only
part where the code is messing up with vertical spacing is here:
https://github.com/mojca/frajtonarca/blob/master/tablature/accordion.ily
in accordionPushSpannerEngraver (written by David Nalesnik) which is
something that I don't fully understand myself. But in theory it
should not affect distances between different staves, it should only
control the distance between main melody, push spanner event and the
basses.
I was looking at
- http://lilypond.org/doc/v2.19/Documentation/learning/vertical-spacing
-
http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables
etc. and found some ugly workarounds to fix the problem (I can create
a manual page break; add artificial invisible marks; increase the
spacing between staves – which will result in too big space even when
I don't have any button names / lyrics above the melody and that looks
ugly; ...), but I wonder if this issue with vertical spacing is:
(a) a bug in lilypond
(b) a bug in the code that handles accordion push events
(c) something that's super difficult to fix anywhere and I should be
using workarounds anyway
I can provide more information if needed, but I'll need a bit more
guidance.
Thank you,
Mojca
--------------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
\version "2.19.30"
\language "deutsch"
#(set-default-paper-size "a4")
\paper {
top-margin = 1.8\cm
}
\layout {
indent = #0
ragged-last = ##t
}
\header{
title = "Title"
poet = ""
composer = "composer"
arranger = "arranger"
}
buttonsIV = \lyricsto "melody" {}
buttonsIII = \lyricsto "melody" { \repeat unfold 40 { \skip 1 } "B3" }
buttonsII = \lyricsto "melody" {
\repeat unfold 150 { "2" }
}
buttonsI = \lyricsto "melody" {
\repeat unfold 150 { "1" }
}
\score {
\new PianoStaff <<
\new Staff = "MelStaff" {
\new Voice = "melody" {
\time 3/4
\repeat unfold 75 { c'4 c'2 }
}
}
\new Lyrics = "buttonsI" \with { alignAboveContext = "MelStaff" } { \buttonsI }
\new Lyrics = "buttonsII" \with { alignAboveContext = "MelStaff" } { \buttonsII }
\new Lyrics = "lyricsI" {
\lyricsto "melody" {
\repeat unfold 100 { I }
}
}
\new Lyrics = "lyricsII" {
\lyricsto "melody" {
\repeat unfold 100 { II }
}
}
\new Lyrics = "buttonsIV" { \buttonsIV }
\new Lyrics = "buttonsIII" { \buttonsIII }
\new RhythmicStaff {
\repeat unfold 150 { c,4 }
}
\new FiguredBass {
\figuremode {
\repeat unfold 150 { <4>4 }
}
}
>>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user