lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lyrics vs horizontal spacing


From: Pierre Perol-Schneider
Subject: Re: Lyrics vs horizontal spacing
Date: Tue, 28 Apr 2020 16:15:37 +0200

Hi Carl,
Thanks, but since you gathered both staves to a single score, yes that works.
However, if 2 scores the first syllable looks ok -- so better output -- but the problem remains:

\version "2.20.0"

%% just a line to show the horizontal spacing:
redline = \markup {
  \with-color #red
  \with-dimensions-from \null
  \translate #'(.6 . -15)
  \draw-line #'(0 . 25)
}
%%%

\score {
  <<
    { \voiceOne c'' 4 4 4  \new Voice { \voiceOne c''4 4 4 } 4 4 } \\
    { \voiceTwo c'4 4 4 4-\redline 4 4 4-\redline 4
      \tweak extra-offset #'(-.5 . -9)\mark\redline }
  >>
}

\score {
  <<
    \new Staff = Portee <<
      {
        \voiceOne c'' 4 4 4
          \new Voice ="lyrvoice" { \voiceOne c''4 4 4 }
        4 4 } \\
      { \voiceTwo c'4 4 4 4 4 4 4 4 }
    >>
    \new Lyrics \lyricsto "lyrvoice" { la -- la -- la }
  >>
  \layout {
    \context {
      \Lyrics
      alignAboveContext = "Portee"
      \override LyricText.font-size = #0
      %\remove Axis_group_engraver %% Yep!!
      %\override LyricText.Y-offset = 1
      %\override LyricHyphen.Y-offset = 1
    }
  }
}

Cheers,
Pierre

Le mar. 28 avr. 2020 à 15:03, Carl Sorensen <address@hidden> a écrit :

 

 

From: Pierre Perol-Schneider <address@hidden>
Date: Tuesday, April 28, 2020 at 2:39 AM
To: lilypond-user <address@hidden>
Subject: Lyrics vs horizontal spacing

 

<snip>

I'm not sure if this is a bug (I didn't find any it in the bug list).

Anyway, I'd like to avoid this bad spacing. Any idea how to?

 

CS->  I eliminated it by using \addlyrics.  I have found \addlyrics to be difficult enough to use properly that I exclusively use \lyricsto

 

%%

\version "2.20.0"

 

%% just a line to show the horizontal spacing:

redline = \markup {

  \with-color #red

  \with-dimensions-from \null

  \translate #'(.6 . -15)

  \draw-line #'(0 . 25)

}

%%%

\score {

  <<

<<

  { \voiceOne c'' 4 4 4  \new Voice { \voiceOne c''4 4 4 } 4 4 } \\

  { \voiceTwo c'4 4 4 4-\redline 4 4 4-\redline 4 }

>> 

 

\new Staff = Portee <<

  {

    \voiceOne c'' 4 4 4

      \new Voice = "lyrvoice" { \voiceOne c''4 4 4 }

     % \addlyrics  \with { alignAboveContext = "Portee" } { la la la }

    4 4 } \\

  { \voiceTwo c'4 4 4 4 4 4 4 4 }

>> 

  \new Lyrics  \with {alignAboveContext = "Portee"} 

    \lyricsto "lyrvoice" { la la la }

 

 

  >>

  }

\layout {

  \context {

    \Voice

    \override NoteColumn.force-hshift = 0 % <= no effect

  }

  \context {

    \Lyrics

    \override LyricText.font-size = #-10 % <= no effect

  }

}

%%%

 

 

HTH,

 

Carl

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]