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 12:33:39 +0200

Oops, \tweak extra-spacing-width #-1 has nothing to do here...

Le mar. 28 avr. 2020 à 12:26, Pierre Perol-Schneider <address@hidden> a écrit :
I have this workaround:

\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)
}
%%%

<<
  { \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 {
        \voiceOne
        \tweak extra-spacing-width #-1
        c''4 4 4 }
      \addlyrics  \with { alignAboveContext = "Portee" } { la -- la -- la }
    4 4 } \\
  { \voiceTwo c'4 4 4 4 4 4 4 4 }
>>

\layout {
  \context {
    \Voice
    \override NoteColumn.force-hshift = 0 % <= no effect
  }
  \context {
    \Lyrics
    \override LyricText.Y-offset = 1
    \override LyricHyphen.Y-offset = 1
    %\override LyricText.font-size = #-10 % <= no effect
    \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = % <= logically no effect
     #'((basic-distance . 1.0)
       (minimum-distance . 0.7)
       (padding . 0.7)
       (stretchability . 15))
    \remove Axis_group_engraver
  }
}

Still, if someone find something less radical...
Cheers,
Pierre

Le mar. 28 avr. 2020 à 10:39, Pierre Perol-Schneider <address@hidden> a écrit :
Hi All,
Please consider this snippet:

%%
\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)
}
%%%

<<
  { \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 { \voiceOne c''4 4 4 }
      \addlyrics  \with { alignAboveContext = "Portee" } { la la la }
    4 4 } \\
  { \voiceTwo c'4 4 4 4 4 4 4 4 }
>>

\layout {
  \context {
    \Voice
    \override NoteColumn.force-hshift = 0 % <= no effect
  }
  \context {
    \Lyrics
    \override LyricText.font-size = #-10 % <= no effect
  }
}
%%%

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?
TIA, cheers,
Pierre

reply via email to

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