Menu

#5280 Stanza numbers no longer align when using multiple verses if I add another staff

New
nobody
2018-02-25
2018-02-25
No

On Thu, 22 Feb 2018 21:49:29 +0100, Malte Meyn lilypond@maltemeyn.de wrote:

It seems to be a bug. Worked as expected in 2.18.2, doesn’t work in
2.19.81 and current master.

-------- Weitergeleitete Nachricht --------
Betreff: stanza alignment
Datum: Sat, 11 Nov 2017 12:08:53 +0100

Hi list,

when I have multiple verses the stanza numbers are aligned. This works
also I put some verses above the a staff and some below. But it doesn’t
work anymore if I then add another staff. Any ideas how to solve this
problem? Is this a bug?

Cheers,
Malte

\version "2.19.80"

<<
  % uncommenting the following line will break (?) the stanza alignment
  %\new Staff { b b b b }
  \lyrics {
    \set stanza = "3." a a a a
  }
  \new Staff { b b b b }
   \lyrics {
    \set stanza = "1." aaaaaaaaaaaaaaaaaaaaaaaaaa a a a
  }
  \lyrics {
    \set stanza = "2." a a a a
  }
>>

Discussion

  • Anonymous

    Anonymous - 2018-02-25

    On Fri, 23 Feb 2018 01:24:53 +0100, Thomas Morley thomasmorley65@gmail.com wrote:

    Behaviour changed between 2.19.8 and 2.19.9.

    commit c73b41b3e7be6d7280c6336cf03610cd7aed3000
    Author: Janek Warchoł lemniskata.bernoullego@gmail.com
    Date: Sun Mar 17 21:22:32 2013 +0100

    Issue 3254: align unassociated lyrics using NoteColumn extent.
    
    This makes unassociated lyrics behave consistently with
    associated lyrics.  Until now, "standalone" lyrics
    were left-aligned (more precisely: their X-offset was 0);
    changing self-alignment-X didn't have any effect on them.
    Now it's possible to specify their alignment, like with
    associated lyrics.
    
    Also, this changes how issue 104 was resolved (see 0b14e8b2e122d) -
    alignment of syllables that are associated to a context without
    noteheads is no longer aborted - and solves issue 247.
    
    Later on, these changes should allow using aligned_on_parent for
    other grobs (such as DynamicTexts).
    
    Expected changes in output: all lyrics should be centered by default.
    

    Looks like a good candidate.

    Adding

    \layout {
      \context {
        \Lyrics 
        \override LyricText.self-alignment-X = #LEFT
      }
    }
    

    seems to restore previous state.

    Cheers,
    Harm

     
  • Thomas Morley

    Thomas Morley - 2018-02-25

    I don't think it's a regresion. The new behaviour was intended by Janek's patch (from patch description).
    It's more a documentation-issue, imho.

    See the example below, with assigned and unassigned Lyrics. Both behave equal, as intended.

    %% assigned Lyrics
    <<
      \new Staff \new Voice = "a" { b b b b }
      \new Lyrics \lyricsto "a" {
        \set stanza = "3." 
        a a a a
      }
    
      \new Staff \new Voice = "b" { b b b b }
      \new Lyrics \lyricsto "b" {
        \set stanza = "1." 
        \once \override LyricText.self-alignment-X = #LEFT
        aaaaaaaaaaaaaaaaaaaaaaaaaa a a a
      }
      \new Lyrics \lyricsto "b" {
        \set stanza = "2." 
        a a a a
      }
    >>
    
    %% unassigned Lyrics
    <<
      \new Staff { b b b b }
      \new Lyrics \lyricmode {
        \set stanza = "3." 
        a a a a
      }
      \new Staff { b b b b }
      \new Lyrics \lyricmode {
        \set stanza = "1." 
        \once \override LyricText.self-alignment-X = #LEFT
        aaaaaaaaaaaaaaaaaaaaaaaaaa a a a
      }
      \new Lyrics \lyricmode {
        \set stanza = "2." 
        a a a a
      }
    

    Maybe we should document the override, a snippet would be sufficient.
    Though, the real issue seems to be we have no real possibility to align StanzaNumbers from different Lyrics-context, afaict.

     
MongoDB Logo MongoDB