minor lyrics alignment bug

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

minor lyrics alignment bug

Trevor Bača-2
Inclusion of underscore character _ with a duration in \lyricmode
causes right alignment rather than center alignment of previous lyric
text.

%%%%%%%% BEGIN ALIGNMENT BUG SNIPPET %%%%%%

\score {
   <<
         \new Staff {
            c'4 c'4 c'4 c'4
         }
         \new Lyrics \lyricmode {
            Notes4 with4 ly4 -- rics.4
         }
         \new Lyrics \lyricmode {
            Notes4 with4 _4 text.4 % "with" ALIGNS INCORRECTLY
         }
   >>
}

%%%%%%%% END ALIGNMENT BUG SNIPPET %%%%%%%%

Trevor Bača
[hidden email]

_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: minor lyrics alignment bug

Han-Wen Nienhuys
Trevor Baca wrote:
> Inclusion of underscore character _ with a duration in \lyricmode
> causes right alignment rather than center alignment of previous lyric
> text.

It's a feature, not a bug. This is intended as a way to easily enter
melismata.  Use \skip if you want to skip things.



--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: minor lyrics alignment bug

Trevor Bača-2
On 8/25/05, Han-Wen Nienhuys <[hidden email]> wrote:
> Trevor Baca wrote:
> > Inclusion of underscore character _ with a duration in \lyricmode
> > causes right alignment rather than center alignment of previous lyric
> > text.
>
> It's a feature, not a bug. This is intended as a way to easily enter
> melismata.  Use \skip if you want to skip things.

Perfect.

Follow-up: why do the lyrics in the second stanza below align weirdly?
Will \set associatedVoice always revert back 1/16th too early? Bug or
feature?

%%%%%%%%% WEIRD ALIGNMENT SNIPPET %%%%%%%

\version "2.7.7"

theVoice = {
   \time 2/4
   \set Staff.autoBeaming = ##f
   c'8
   <<
      {
         \voiceOne
         d'16
         d'16
         \oneVoice
      }
      \context Voice = "alternative" {
         \voiceTwo
         d'8
         \oneVoice
      }
   >>
   e'8
   f'8
}

theGoodLyrics = \lyricmode {
   C D D E F. % GOOD ALIGNMENT
}

theWeirdLyrics = \lyricmode {
   \set associatedVoice = "alternative"
   C
   % reverts to mainVoice 1/16th too early:
   \set associatedVoice = "mainVoice"
   D
   E
   F.
}

\score {
   \new Staff <<
      \context Voice = "mainVoice" \theVoice
      \new Lyrics \lyricsto "mainVoice" \theGoodLyrics
      \new Lyrics \lyricsto "mainVoice" \theWeirdLyrics
   >>
   \layout {
      raggedright = ##t
   }
}

%%%%%%%%%% END WEIRD ALIGNMENT SNIPPET %%%%%%%


Trevor Bača
[hidden email]

_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond