Menu

#3216 Lyrics collide with span bar

Accepted
nobody
None
Ugly
2015-09-25
2013-03-01
Anonymous
No

Originally created by: *anonymous

Originally created by: k-ohara5...@oco.net

:::TeX
\new PianoStaff <<
  \new Staff \new Voice = "a" {g'2. g'4 g'1}
  \new Lyrics {\lyricsto "a" all through }
  \new Staff R1*2 >>

Workaround:
  If the music lasts beyond the last lyric, put an explicit \skip1 in the lyrics to generate the a span-bar stub that is required after the fix for issue 910

1 Attachments

Related

Issues: #910

Discussion

  • Google Importer

    Google Importer - 2013-03-04

    Originally posted by: x.sche...@gmail.com

    So, according to your opinion, what should be the "correct" output?
    Move the barline to accommodate for longer lyrics?

    IMHO this is against advice that "lyrics should not influence note
    spacing" (I'm quite sure Ross, Read or Gould should have said something
    like that).  Furthermore lyrics are usually written within ChoirStaff
    (i.e. no span bars) and not PianoStaff, to avoid this.

     
  • Google Importer

    Google Importer - 2013-03-04

    Originally posted by: k-ohara5...@oco.net

    In my opinion, the "through" should cross the span bar as it does.

    Unfortunately, if there is a following lyrics syllable, "all through it", then the bar line moves right of the through.  We can get consistent behavior, minimal influence of note-spacing, and whiteout to keep the lyrics readable, with :
    \layout { \context {
      \Lyrics \remove Pure_from_neighbor_engraver
      \override LyricText #'whiteout = ##t }

    The reason for the bug report is that LilyPond has regression tests 'lyrics-spanbar.ly' and 'span-bar-allow-span-bar.ly' indicating that she /tries/ to clear the span bars, but does not always succeed.  If no-one wants Lyrics to avoid span bars, we can make the workaround above the new default.

     
  • Google Importer

    Google Importer - 2013-03-04

    Originally posted by: googlegr...@ensemble101.fr

    I prefer the first to the second.

    :::TeX
    \new PianoStaff <<
     \new Staff \new Voice = "a" {g'2. g'4 g'1}
     \new Lyrics \lyricsto "a" { all throu \skip 1}
     \new Staff R1*2 >>
    
    \score {
    \new PianoStaff <<
     \new Staff \new Voice = "a" {g'2. g'4 g'1}
     \new Lyrics \lyricsto "a" { all throu }
     \new Staff R1*2 >>
    \layout { \context {
     \Lyrics \remove Pure_from_neighbor_engraver
     \override LyricText #'whiteout = ##t }}
    }
    

    Rather than removing the engraver, why not just make the default height for stubs empty?  Then, a command like:

    \lyricsPushSpanbar

    could be
    \override SpanBarStub #'Y-extent = #whatever-it-is-currently

     

    Last edit: Trevor Daniels 2015-09-25
  • Trevor Daniels

    Trevor Daniels - 2015-09-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,10 +2,13 @@
    
     *Originally created by:* [k-ohara5...@oco.net](http://code.google.com/u/110197288862747384800/)
    
    -\new PianoStaff &lt;&lt;
    -&nbsp; \new Staff \new Voice = "a" \{g'2. g'4 g'1\}
    -&nbsp; \new Lyrics \{\lyricsto "a" all through \}
    -&nbsp; \new Staff [r1]\*2 &gt;&gt;
    -
    +~~~~
    +:::TeX
    +\new PianoStaff <<
    +  \new Staff \new Voice = "a" {g'2. g'4 g'1}
    +  \new Lyrics {\lyricsto "a" all through }
    +  \new Staff R1*2 >>
    +~~~~
    +  
     Workaround:
     &nbsp; If the music lasts beyond the last lyric, put an explicit \skip1 in the lyrics to generate the a span-bar stub that is required after the fix for [issue 910](#910)
    
    • Needs: -->
    • Patch: -->
     
  • Trevor Daniels

    Trevor Daniels - 2015-09-25