[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lyrics collide with GrandStaff barlines
From: |
Lambros Lambrou |
Subject: |
Lyrics collide with GrandStaff barlines |
Date: |
Mon, 05 Dec 2005 01:09:46 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20051013) |
Dear All,
I've found there is a problem with the "Piano centered lyrics" template
in section 3.2.3 of the manual. If I actually use this template as
provided, I find that the lyrics collide with the long GrandStaff
barlines. The snippet I've provided below reproduces the problem for me
- it is only a slight variation of that template. The final barline is
drawn straight through the middle of the "LooooongSyllable".
I discovered a way to "fix" the issue by taking inspiration from the
regression-test "lyrics-bar.ly". I added:
\override BarLine #'bar-size = #4
to the lyrics context, which causes the lyrics to be rendered with
barlines. This "fixes" the problem, but it isn't very elegant - the
barlines in the lyrics context would be drawn over the top of the
GrandStaff barlines. You can see this by uncommenting the
"\override..." line in my snippet - this causes the fragment to be
properly typeset.
An interesting thing happens when I try changing the "#4" to different
values. If I specify a non-zero bar-size, the lyrics properly avoid the
barlines. But if I specify #0, then the lyrics collide with the barlines.
Also, you can see this more clearly if you change "GrandStaff" to
"ChoirStaff". The lyrics only avoid the barlines if the barlines are
rendered with a non-zero size. This is correct behaviour for a
ChoirStaff, but it is not desirable behaviour for a GrandStaff. The
lyrics ought to avoid collision with the GrandStaff barlines, even if #0
is chosen for the bar-size in the Lyrics context.
If you cannot easily fix this bug, can I suggest instead that you update
the provided template in section 3.2.3 of the manual, and include my
suggested work-around?
Quick Summary:
1) The exact code snippet below reproduces the problem for me.
2) The lyrics ought to avoid collision with GrandStaff barlines, even
when the bar-size is #0 in the Lyrics context.
3) If fixing this is not feasible, maybe you could consider updating
your example template in section 3.2.3 with my workaround?
I am using LilyPond 2.7.19, compiled from source on a GNU/Linux system
(Ubuntu breezy, ***x86_64 platform***, that's why I had to compile from
source). The same problem happens with version 2.6.4. Here's the snippet:
========
\version "2.7.19"
\paper {
raggedright = ##t
}
upper = \relative c'' {
\clef treble
\key c \major
\time 4/4
a b c d
}
lower = \relative c {
\clef bass
\key c \major
\time 4/4
a2 c
}
text = \lyricmode {
Aaa Bee Cee LooooooooongSyllable
}
\score {
\context GrandStaff <<
\context Staff = upper { \context Voice = singer \upper }
\lyricsto "singer" \new Lyrics \text
\context Staff = lower {
\clef bass
\lower
}
>>
\layout {
\context { \GrandStaff \accepts "Lyrics" }
\context { \Lyrics
% This line is not part of the "3.2.3 Piano centered lyrics"
% template in the manual. It is needed to prevent the lyrics from
% colliding with the GrandStaff barlines.
% \override BarLine #'bar-size = #4
\consists "Bar_engraver" }
}
\midi { \tempo 4=60 }
}
========
Many thanks for the great software! Hope I've provided enough
information for you to reproduce and understand the problem.
Lambros Lambrou
- Lyrics collide with GrandStaff barlines,
Lambros Lambrou <=